mirror of https://github.com/prometheus/prometheus
parent
db5868f1b3
commit
39411b516d
@ -0,0 +1,21 @@
|
||||
global {
|
||||
scrape_interval = "30s"
|
||||
evaluation_interval = "30s"
|
||||
labels {
|
||||
monitor = "test"
|
||||
}
|
||||
rule_files = [
|
||||
"prometheus.rules"
|
||||
]
|
||||
}
|
||||
|
||||
job {
|
||||
jobname = "prometheus"
|
||||
scrape_interval = "15s"
|
||||
|
||||
targets {
|
||||
endpoints = [
|
||||
"http://localhost:9090/metrics.json"
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
global {
|
||||
scrape_interval = "30s"
|
||||
evaluation_interval = "30s"
|
||||
labels {
|
||||
monitor = "test"
|
||||
}
|
||||
rule_files = [
|
||||
"prometheus.rules"
|
||||
]
|
||||
}
|
||||
|
||||
job {
|
||||
name = "prometheus"
|
||||
scrape_interval = "15s"
|
||||
|
||||
targets {
|
||||
endpoints = [
|
||||
"http://localhost:9090/metrics.json"
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
global {
|
||||
scrape_interval = "30s"
|
||||
evaluation_interval = "30s"
|
||||
labels {
|
||||
monitor = "test"
|
||||
}
|
||||
rule_files = [
|
||||
"prometheus.rules"
|
||||
]
|
||||
}
|
||||
|
||||
job {
|
||||
name = "prometheus"
|
||||
scrape_interval = "15s"
|
||||
|
||||
targets {
|
||||
endpoints = [
|
||||
"http://localhost:9090/metrics.json"
|
||||
]
|
||||
labels {
|
||||
group = "canary"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
job {
|
||||
name = "random"
|
||||
scrape_interval = "30s"
|
||||
|
||||
targets {
|
||||
endpoints = [
|
||||
"http://random.com:8080/metrics.json",
|
||||
"http://random.com:8081/metrics.json",
|
||||
"http://random.com:8082/metrics.json",
|
||||
"http://random.com:8083/metrics.json",
|
||||
"http://random.com:8084/metrics.json"
|
||||
]
|
||||
labels {
|
||||
group = "production"
|
||||
}
|
||||
}
|
||||
targets {
|
||||
endpoints = [
|
||||
"http://random.com:8085/metrics.json",
|
||||
"http://random.com:8086/metrics.json"
|
||||
]
|
||||
labels {
|
||||
group = "canary"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue