项目作者: igor-feoktistov

项目描述 :
Alert receiver implementation of Webhook type for Prometheus AlertManager that forwards alerts to Splunk HEC
高级语言: Go
项目地址: git://github.com/igor-feoktistov/alert-forwarder.git
创建时间: 2021-05-07T23:45:51Z
项目社区:https://github.com/igor-feoktistov/alert-forwarder

开源协议:MIT License

下载


alert-forwarder

alert-forwarder is an alert receiver implementation of Webhook type for Prometheus AlertManager.

alert-forwarder forwards alerts from AlertManager to Splunk HEC (HTTP Event Collector).

It also implements Watchdog alerts checks to ensure that the entire alerting pipeline is functional.

Configuration

  1. silenced: false
  2. log.level: debug
  3. watchdog.check_interval: 15
  4. watchdog.alert_interval: 7200
  5. watchdog.timeout: 300
  6. event.host: "us-east1-01"
  7. event.sourceType: "prometheus_alerts"
  8. collector.host: "hec.example.com"
  9. collector.protocol: "https"
  10. collector.port: 8088
  11. collector.token: "xxxxxxxx"
  • silenced - true or false, if you need to silence all alerts (default false)
  • log.level - debug|info|warn|error (default info)
  • watchdog.check_interval - in seconds, how often to check Watchdog pipeline
  • watchdog.alert_interval - in seconds, interval to send broken pipeline alerts
  • watchdog.timeout - in seconds, first alert if Watchdog was not received during this time
  • event.host - event host, typically Kubernetes cluster name to identify the source of alerts
  • event.sourceType - event sourcetype
  • collector.host - Splunk HEC host name or IP address
  • collector.protocol - http or https (default https)
  • collector.port - HEC port (default 8088)
  • collector.token - HEC authentication token

Build

Requirements for building

  • Go (version 1.14 or higher)
  • docker for image building

A Makefile is provided for building tasks.

```bash
cd $GOPATH/src/alert-forwarder
make build
make install
make image
make push