--- global: scrape_interval: 5s evaluation_interval: 15s scrape_configs: - job_name: "prometheus" static_configs: - targets: ["localhost:9090"] - job_name: c3voc scrape_interval: 30s scheme: https static_configs: - targets: ["monitoring.c3voc.de:443"] - job_name: vector static_configs: - targets: ["ax41-1.fsn.mon2.de:28668"] - job_name: node static_configs: - targets: - ingest-fsn.chaoswest.tv:9100 - ingest-nbg.chaoswest.tv:9100 - oldportier.chaoswest.tv:9100 - job_name: srs static_configs: - targets: - ingest-fsn.chaoswest.tv:9185 - ingest-nbg.chaoswest.tv:9185 - job_name: ffmpeg scrape_interval: 1s static_configs: - targets: - oldportier.chaoswest.tv:2342 - job_name: "dockerswarm" dockerswarm_sd_configs: - host: tcp://docker:2375 role: tasks relabel_configs: # Only keep containers that should be running. - source_labels: [__meta_dockerswarm_task_desired_state] regex: running action: keep # Only keep containers that have a `prometheus-job` label. - source_labels: [__meta_dockerswarm_service_label_prometheus_job] regex: .+ action: keep # Use the prometheus-job Swarm label as Prometheus job label. - source_labels: [__meta_dockerswarm_service_label_prometheus_job] target_label: job # Only scrape within the metrics network - source_labels: [__meta_dockerswarm_network_name] regex: metrics action: keep # Fix address and use the label defined listening port - source_labels: [__address__, __meta_dockerswarm_service_label_prometheus_port] separator: ":" regex: "(.*):.*:(.*)" target_label: __address__ replacement: "${1}:${2}" # if this is a node exporter, use the node hostname as the instance label - source_labels: [__meta_dockerswarm_service_name, __meta_dockerswarm_node_hostname] separator: ":" regex: "prometheus-node-exporter:(.*)" target_label: instance replacement: "${1}"