mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-23 19:56:18 -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 {
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue