From 986adfa5572a5d1398a3cbd66192182f589b3eaf Mon Sep 17 00:00:00 2001 From: Conor Hennessy Date: Thu, 10 Oct 2013 20:53:19 +0200 Subject: [PATCH] Update example config file from json to new protobuf format. Change-Id: I38646c2be53b6993abe464d9cdd9b211678de496 --- documentation/examples/prometheus.conf | 28 ++++++++++++++------------ 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/documentation/examples/prometheus.conf b/documentation/examples/prometheus.conf index 0ed17b439f..7e99e739fa 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" + } } } }