1 2 3 4 5 6 7 8 9 10 11 12 13 14
global: scrape_interval: 5s external_labels: monitor: 'my-monitor' scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] - job_name: 'kafka-consumer' metrics_path: '/monitoring/prometheus' static_configs: - targets: ['kafka-consumer:6062']