global: scrape_interval: 15s evaluation_interval: 15s scrape_timeout: 8s alerting: alertmanagers: - static_configs: - targets: - "10.150.117.190:9093" rule_files: - "/etc/prometheus/rules/*.yml" scrape_configs: - job_name: "cnszipa01" static_configs: - targets: ["10.152.10.118:9100"] - job_name: "cnxaipa01" static_configs: - targets: ["10.153.10.30:9100"] - job_name: "cnxanis01" static_configs: - targets: ["10.153.10.200:9100"] - job_name: "nsschina2" static_configs: - targets: ["10.150.111.240:9100"] - job_name: 'pushgateway' static_configs: - targets: ['10.150.117.190:9091'] - job_name: "prometheus" static_configs: - targets: ["10.150.117.190:9100"] - job_name: "nsschina" static_configs: - targets: ["10.150.10.180:9100"] - job_name: "cnshipa01" static_configs: - targets: ["10.150.10.81:9100"] - job_name: "nshipa02" static_configs: - targets: ["10.150.10.82:9100"] - job_name: "cnbjipanfs01" static_configs: - targets: ["10.151.10.32:9100"] - job_name: "twvmipa01" static_configs: - targets: ["10.160.10.188:9100"] - job_name: "twvmipa02" static_configs: - targets: ["10.160.10.189:9100"] - job_name: "twvmipa03" static_configs: - targets: ["10.160.10.190:9100"] - job_name: "twvmipa04" static_configs: - targets: ["10.160.10.191:9100"] - job_name: "cnsznis01" static_configs: - targets: ["10.152.10.31:9100"] - job_name: "cnshipa03" static_configs: - targets: ["10.150.10.86:9100"] - job_name: "usdcnbackup01" static_configs: - targets: ["10.115.10.83:9100"] - job_name: "USATNIS02" static_configs: - targets: ["10.108.10.14:9100"] - job_name: "tcp_port_111_2049_check" metrics_path: /probe params: module: [tcp_connect] static_configs: - targets: - 10.152.10.118:111 - 10.153.10.30:111 - 10.153.10.30:2049 - 10.153.10.200:111 - 10.153.10.200:2049 - 10.150.111.240:111 - 10.150.111.240:2049 - 10.150.10.180:111 - 10.150.10.81:111 - 10.150.10.83:2049 - 10.151.10.32:111 - 10.151.10.32:2049 - 10.152.10.31:111 - 10.152.10.31:2049 - 10.150.10.86:111 relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: 10.150.117.190:9115 - source_labels: [__param_target] regex: .+:(\d+) target_label: port - job_name: "cnshipa04" static_configs: - targets: ["10.150.10.87:9100"] # FreeIPA LDAP 389明文 / 636加密端口连通探测 - job_name: "blackbox-freeipa-ldap" metrics_path: /probe params: module: [tcp_connect] static_configs: - targets: - 10.150.10.81:389 - 10.150.10.82:389 - 10.150.10.86:389 - 10.150.10.87:389 - 10.160.10.188:389 - 10.160.10.189:389 - 10.160.10.190:389 - 10.160.10.191:389 - 10.152.10.118:389 - 10.153.10.30:389 - 10.151.10.31:389 relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: 10.150.117.190:9115 - source_labels: [__param_target] regex: .+:(\d+) target_label: port - job_name: "cnbjipa01" static_configs: - targets: ["10.151.10.31:9100"] - job_name: consul-sd consul_sd_configs: - server: 10.150.117.190:8500 tags: ["metrics"] relabel_configs: - source_labels: [__meta_consul_health] regex: passing action: keep - source_labels: [__meta_consul_service] target_label: service - source_labels: [__meta_consul_address, __meta_consul_service_port] separator: ":" target_label: instance - job_name: "cnshnis01_systemd" static_configs: - targets: ["10.150.10.180:9558"] - job_name: "cnshipa01_systemd" static_configs: - targets: ["10.150.10.81:9558"] - job_name: "cnshipa02_systemd" static_configs: - targets: ["10.150.10.82:9558"] - job_name: "cnshipa03_systemd" static_configs: - targets: ["10.150.10.86:9558"] - job_name: "cnshipa04_systemd" static_configs: - targets: ["10.150.10.87:9558"] - job_name: "nsschina2_systemd" static_configs: - targets: ["10.150.111.240:9558"] - job_name: "cnbjipa01_systemd" static_configs: - targets: ["10.151.10.31:9558"] - job_name: "cnbjipanfs01_systemd" static_configs: - targets: ["10.151.10.32:9558"] - job_name: "cnszipa01_systemd" static_configs: - targets: ["10.152.10.118:9558"] - job_name: "twvmipa01_systemd" static_configs: - targets: ["10.160.10.188:9558"] - job_name: "twvmipa02_systemd" static_configs: - targets: ["10.160.10.189:9558"] - job_name: "twvmipa04_systemd" static_configs: - targets: ["10.160.10.191:9558"] - job_name: "twvmipa03_systemd" static_configs: - targets: ["10.160.10.190:9558"] - job_name: "cnxaipa01_systemd" static_configs: - targets: ["10.153.10.30:9558"] - job_name: blackbox_icmp_ping metrics_path: /probe params: module: [icmp] static_configs: - targets: - 10.150.10.83 - 10.152.10.24 - 10.150.10.55 - 10.153.10.210 - 10.160.10.91 - 10.151.10.34 relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - replacement: 10.150.117.190:9115 # blackbox地址 target_label: __address__ - job_name: "blackbox-veeam-port" scrape_timeout: 10s metrics_path: /probe params: module: [tcp_connect] static_configs: - targets: - 10.115.12.185:6160 - 10.115.12.185:6162 - 10.115.12.185:443 - 10.115.12.185:445 relabel_configs: # 把目标主机:端口传给blackbox探测参数 - source_labels: [__address__] target_label: __param_target # instance标签展示完整地址:端口 - source_labels: [__param_target] target_label: instance # 实际抓取地址指向远端blackbox服务 - target_label: __address__ replacement: 10.150.117.190:9115 # 提取端口号存入port标签,告警可单独展示端口 - source_labels: [__param_target] regex: .+:(\d+) target_label: port # 新增业务标签,用于告警分组过滤 - source_labels: [] target_label: business replacement: veeam_backup - job_name: 'blackbox-veeam-monitor' metrics_path: /probe params: module: [tcp_connect] # 使用 TCP 连通性探测 static_configs: - targets: # Veeam Service Provider Console (VSPC) # - 10.115.13.209:1989 # usdcnveeamconsole01 (Web UI) # - 10.115.13.209:9999 # usdcnveeamconsole01 (Server) relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: blackbox-exporter:9115 # 请确保这里替换为您 Blackbox Exporter 的实际地址