|
|
@ -1,8 +1,10 @@ |
|
|
|
port = 4347 |
|
|
|
port = 4347 |
|
|
|
|
|
|
|
|
|
|
|
[prometheus] |
|
|
|
# one of datasource sections (prometheus / influx) should be uncommented and edited corresponding to your environment |
|
|
|
url = "http://localhost:9090" |
|
|
|
|
|
|
|
query = "rate(go_memstats_alloc_bytes_total[5m])" |
|
|
|
# [prometheus] |
|
|
|
|
|
|
|
# url = "http://localhost:9090" |
|
|
|
|
|
|
|
# query = "rate(go_memstats_alloc_bytes_total[5m])" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# [influx] |
|
|
|
# [influx] |
|
|
@ -16,8 +18,7 @@ query = "rate(go_memstats_alloc_bytes_total[5m])" |
|
|
|
# |> yield(name: "mean") |
|
|
|
# |> yield(name: "mean") |
|
|
|
# """ |
|
|
|
# """ |
|
|
|
|
|
|
|
|
|
|
|
[alerting] |
|
|
|
# [alerting] |
|
|
|
type = "webhook" |
|
|
|
# type = "webhook" |
|
|
|
interval = 10 # in seconds |
|
|
|
# interval = 10 # in seconds |
|
|
|
endpoint = "http://localhost:9092" |
|
|
|
# endpoint = "http://localhost:9092" |
|
|
|
|
|
|
|
|
|
|
|