global: scrape_interval: 15s evaluation_interval: 15s external_labels: monitor: 'netmodule' rule_files: scrape_configs: - job_name: 'node-exporter' static_configs: - targets: ['node-exporter:9100'] - job_name: 'cadvisor' static_configs: - targets: ['cadvisor:8080'] - job_name: 'traefik' static_configs: - targets: ['traefik:8080'] - job_name: 'pushgateway' scrape_interval: 5s honor_labels: true static_configs: # pushgateway fill in according to the actual situation - targets: ['pushgateway:9091'] - job_name: 'snmp' # Override the global default and scrape targets from this job every 5 seconds. scrape_interval: 10m scrape_timeout: 2m static_configs: - targets: - 100.73.199.1 # SNMP device ip address labels: device: NB1601 environment: production site: Eschborn metrics_path: /snmp params: module: [NB1601] relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: 172.17.0.1:9116 # The SNMP exporter's real hostname:port.