Skip to content

Instantly share code, notes, and snippets.

@yangl
Last active April 27, 2021 05:38
Show Gist options
  • Save yangl/3e20eeea8fd5b4f7b920992143da7ed7 to your computer and use it in GitHub Desktop.
Save yangl/3e20eeea8fd5b4f7b920992143da7ed7 to your computer and use it in GitHub Desktop.
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:9090']
- job_name: 'broker'
honor_labels: true # don't overwrite job & instance labels
static_configs:
- targets: ['10.206.128.212:18080','10.206.128.213:18080','10.206.128.214:18080','10.206.128.215:18080','10.206.128.216:18080']
- job_name: 'bookie'
honor_labels: true # don't overwrite job & instance labels
static_configs:
- targets: ['10.207.128.13:8000','10.207.128.14:8000','10.207.128.15:8000','10.207.128.16:8000','10.207.128.17:8000']
- targets: ['10.206.128.204:8000','10.206.128.205:8000','10.206.128.206:8000','10.206.128.210:8000','10.206.128.211:8000']
- targets: ['10.206.128.154:8000','10.206.128.155:8000','10.206.128.156:8000','10.206.128.157:8000','10.206.128.158:8000']
- job_name: 'zookeeper'
honor_labels: true # don't overwrite job & instance labels
static_configs:
- targets: ['10.207.128.13:9141','10.207.128.14:9141','10.207.128.15:9141','10.207.128.16:9141','10.207.128.17:9141']
- targets: ['10.206.128.204:9141','10.206.128.205:9141','10.206.128.206:9141','10.206.128.210:9141','10.206.128.211:9141']
- targets: ['10.206.128.154:9141','10.206.128.155:9141','10.206.128.156:9141','10.206.128.157:9141','10.206.128.158:9141']
- job_name: 'node_metrics'
honor_labels: true # don't overwrite job & instance labels
static_configs:
- targets: ['10.207.128.13:9100','10.207.128.14:9100','10.207.128.15:9100','10.207.128.16:9100','10.207.128.17:9100']
- targets: ['10.206.128.204:9100','10.206.128.205:9100','10.206.128.206:9100','10.206.128.210:9100','10.206.128.211:9100']
- targets: ['10.206.128.154:9100','10.206.128.155:9100','10.206.128.156:9100','10.206.128.157:9100','10.206.128.158:9100']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment