diff --git a/documentation/examples/prometheus.conf b/documentation/examples/prometheus.conf index 0ed17b439..7e99e739f 100644 --- a/documentation/examples/prometheus.conf +++ b/documentation/examples/prometheus.conf @@ -1,24 +1,26 @@ global { - scrape_interval = "1s" - evaluation_interval = "1s" + scrape_interval: "1s" + evaluation_interval: "1s" labels { - monitor = "test" + label { + name: "owner" + value: "test" + } } - rule_files = [ - "prometheus.rules" - ] + rule_file: "prometheus.rules" } job { - name = "prometheus" - scrape_interval = "5s" + name: "prometheus" + scrape_interval: "5s" - targets { - endpoints = [ - "http://localhost:9090/metrics.json" - ] + target_group { + target: "http://localhost:9090/metrics.json" labels { - group = "canary" + label { + name: "group" + value: "canary" + } } } }