mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
Update example config file from json to new protobuf format.
Change-Id: I38646c2be53b6993abe464d9cdd9b211678de496
This commit is contained in:
parent
9a48010cec
commit
986adfa557
|
@ -1,24 +1,26 @@
|
||||||
global {
|
global {
|
||||||
scrape_interval = "1s"
|
scrape_interval: "1s"
|
||||||
evaluation_interval = "1s"
|
evaluation_interval: "1s"
|
||||||
labels {
|
labels {
|
||||||
monitor = "test"
|
label {
|
||||||
|
name: "owner"
|
||||||
|
value: "test"
|
||||||
}
|
}
|
||||||
rule_files = [
|
}
|
||||||
"prometheus.rules"
|
rule_file: "prometheus.rules"
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
job {
|
job {
|
||||||
name = "prometheus"
|
name: "prometheus"
|
||||||
scrape_interval = "5s"
|
scrape_interval: "5s"
|
||||||
|
|
||||||
targets {
|
target_group {
|
||||||
endpoints = [
|
target: "http://localhost:9090/metrics.json"
|
||||||
"http://localhost:9090/metrics.json"
|
|
||||||
]
|
|
||||||
labels {
|
labels {
|
||||||
group = "canary"
|
label {
|
||||||
|
name: "group"
|
||||||
|
value: "canary"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue