【文件属性】:
文件名称:alertmanager-irc-relay:使用Webhooks将Prometheus警报发送到IRC
文件大小:38KB
文件格式:ZIP
更新时间:2021-02-03 03:29:38
monitoring irc alerting prometheus MonitoringGo
Alertmanager IRC中继
Alertmanager IRC Relay是将警报中继到IRC的机器人。 使用从Prometheus接收警报,并将警报中继到IRC通道。
配置和运行机器人
要配置和运行机器人,您需要创建一个YAML配置文件并将其传递给服务。 在没有配置的情况下运行服务将使用默认的测试值并连接到默认的IRC通道,您可能不想这样做。
配置示例:
# Start the HTTP server receiving alerts from Prometheus Webhook binding to
# this host/port.
#
http_host: localhost
http_port: 8000
# Connect to this IRC host/port.
#
# Note: SSL is enabled by default, use "irc_use_ssl: no" to disable.
irc_host: irc.example.com
irc_port: 7000
# Optionally set the server password
【文件预览】:
alertmanager-irc-relay-master
----backoff_test.go(2KB)
----http.go(4KB)
----testdata.go(3KB)
----.github()
--------workflows()
----config_test.go(6KB)
----LICENSE(11KB)
----backoff.go(2KB)
----CONTRIBUTING.md(1KB)
----irc.go(8KB)
----config.go(3KB)
----format_test.go(4KB)
----main.go(2KB)
----http_test.go(4KB)
----.gitignore(31B)
----go.sum(24KB)
----README.md(3KB)
----data.go(651B)
----irc_test.go(19KB)
----format.go(2KB)
----go.mod(597B)