1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| cat <<EOF > /opt/app/prometheus/sd/node_exporter.json [ { "targets": [ "192.168.101.222:9100" ], "labels": { "name": "prome-master01", "account": "aliyun-01", "region": "ap-south-1", "env": "prod", "group": "inf", "project": "monitor", "stree_gpa": "inf.monitor.prometheus" } }, { "targets": [ "192.168.101.223:9100" ], "labels": { "name": "prome-node01", "account": "aliyun-02", "region": "ap-south-2", "env": "prod", "group": "inf", "project": "middleware", "stree_gpa": "inf.middleware.kafka" } } ] EOF
cat <<EOF > /opt/app/prometheus/sd/blackbox_http.json [ { "targets": [ "192.168.101.222:9115", "http://prometheus.io", "http://www.baidu.com", "https://www.baidu.com" ] } ] EOF
|