59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
global:
|
|
scrape_interval: 60s
|
|
evaluation_interval: 60s
|
|
scrape_timeout: 60s
|
|
|
|
external_labels:
|
|
monitor: 'codelab-monitor'
|
|
|
|
rule_files:
|
|
# - "first.rules"
|
|
# - "second.rules"
|
|
|
|
scrape_configs:
|
|
- job_name: 'prometheus'
|
|
|
|
static_configs:
|
|
- targets: ['127.0.0.1:9090']
|
|
|
|
- job_name: 'netdata-one'
|
|
|
|
metrics_path: '/api/v1/allmetrics'
|
|
params:
|
|
# format: prometheus | prometheus_all_hosts
|
|
# You can use `prometheus_all_hosts` if you want Prometheus to set the `instance` to your hostname instead of IP
|
|
format: [prometheus_all_hosts]
|
|
#
|
|
# sources: as-collected | raw | average | sum | volume
|
|
# default is: average
|
|
source: [as-collected]
|
|
#
|
|
# server name for this prometheus - the default is the client IP
|
|
# for Netdata to uniquely identify it
|
|
server: ['one.example.com']
|
|
honor_labels: true
|
|
|
|
static_configs:
|
|
- targets: ['10.0.0.1:19999']
|
|
|
|
- job_name: 'netdata-two'
|
|
|
|
metrics_path: '/api/v1/allmetrics'
|
|
params:
|
|
# format: prometheus | prometheus_all_hosts
|
|
# You can use `prometheus_all_hosts` if you want Prometheus to set the `instance` to your hostname instead of IP
|
|
format: [prometheus_all_hosts]
|
|
#
|
|
# sources: as-collected | raw | average | sum | volume
|
|
# default is: average
|
|
source: [as-collected]
|
|
#
|
|
# server name for this prometheus - the default is the client IP
|
|
# for Netdata to uniquely identify it
|
|
server: ['two.example.com']
|
|
honor_labels: true
|
|
|
|
static_configs:
|
|
- targets: ['10.0.0.2:19999']
|
|
|