diff --git a/Makefile b/Makefile index e4592a3..010294e 100644 --- a/Makefile +++ b/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: diff --git a/server/config.example.toml b/server/config.example.toml index 9a0df60..ac8609d 100644 --- a/server/config.example.toml +++ b/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"