global: scrape_interval: 15s evaluation_interval: 15s alerting: alertmanagers: - static_configs: - targets: # - alertmanager:9093 rule_files: # - "first_rules.yml" # - "second_rules.yml" scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] - job_name: 'node' static_configs: - targets: ['192.168.20.172:9100', '192.168.20.173:9100', '192.168.20.174:9100'] params: collect[]: - cpu - meminfo - diskstats - netdev - netstat - filefd - filesystem - xfs - systemd - job_name: 'docker' static_configs: - targets: ['192.168.20.172:8080', '192.168.20.173:8080', '192.168.20.174:8080'] metric_relabel_configs: - source_labels: [__name__] separator: ',' regex: '(container_tasks_state|container_memory_failures_total)' action: drop