Browse Source

upd config example

pull/110/head
rozetko 2 years ago
parent
commit
f4226a5245
  1. 2
      Makefile
  2. 17
      server/config.example.toml

2
Makefile

@ -3,7 +3,7 @@ all: server client
cp server/target/x86_64-unknown-linux-musl/release/hastic release
mkdir release/public
cp -r client/dist/* release/public/
test -f server/config.toml && cp server/config.toml release/config.toml
cp server/config.example.toml release/config.toml
server:

17
server/config.example.toml

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

Loading…
Cancel
Save