- _collect_snapshot() and _process_interfaces() now skip any Prometheus instance not explicitly listed in config.json hosts[]. LXC app servers (postgresql, matrix, etc.) report node_exporter metrics but are not infrastructure hosts Gandalf should display or alert on. - Add PBS (10.10.10.3) to config hosts[] with prometheus_instance; remove from ping_hosts (node_exporter already running on PBS, now added to Prometheus scrape config as job pbs-node). - The _instance_map membership check is now consistent across snapshot, alerting, and ethtool SSH collection. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
74 lines
1.7 KiB
JSON
74 lines
1.7 KiB
JSON
{
|
|
"pulse": {
|
|
"url": "http://10.10.10.65:8080",
|
|
"api_key": "012b303a324152c509bf5ade6f942cfc21404f68662f01a17001cba9e4486049",
|
|
"worker_id": "1b11d1b5-4ed0-42df-a6af-8d57fffe1343",
|
|
"timeout": 45
|
|
},
|
|
"unifi": {
|
|
"controller": "https://10.10.10.1",
|
|
"api_key": "kyPfIsAVie3hwMD4Bc1MjAu8N7HVPIb8",
|
|
"site_id": "default"
|
|
},
|
|
"prometheus": {
|
|
"url": "http://10.10.10.48:9090"
|
|
},
|
|
"database": {
|
|
"host": "10.10.10.50",
|
|
"port": 3306,
|
|
"user": "gandalf",
|
|
"password": "Gandalf2026Lotus",
|
|
"name": "gandalf"
|
|
},
|
|
"ticket_api": {
|
|
"url": "http://10.10.10.45/create_ticket_api.php",
|
|
"api_key": "5acc5d3c647b84f7c6f59082ce4450ee772e2d1633238b960136f653d20c93af"
|
|
},
|
|
"auth": {
|
|
"allowed_groups": ["admin"]
|
|
},
|
|
"monitor": {
|
|
"poll_interval": 300,
|
|
"failure_threshold": 2,
|
|
"cluster_threshold": 3,
|
|
"ping_hosts": []
|
|
},
|
|
"hosts": [
|
|
{
|
|
"name": "pbs",
|
|
"ip": "10.10.10.3",
|
|
"prometheus_instance": "10.10.10.3:9100"
|
|
},
|
|
{
|
|
"name": "large1",
|
|
"ip": "10.10.10.2",
|
|
"prometheus_instance": "10.10.10.2:9100"
|
|
},
|
|
{
|
|
"name": "compute-storage-01",
|
|
"ip": "10.10.10.4",
|
|
"prometheus_instance": "10.10.10.4:9100"
|
|
},
|
|
{
|
|
"name": "micro1",
|
|
"ip": "10.10.10.8",
|
|
"prometheus_instance": "10.10.10.8:9100"
|
|
},
|
|
{
|
|
"name": "monitor-02",
|
|
"ip": "10.10.10.9",
|
|
"prometheus_instance": "10.10.10.9:9100"
|
|
},
|
|
{
|
|
"name": "compute-storage-gpu-01",
|
|
"ip": "10.10.10.10",
|
|
"prometheus_instance": "10.10.10.10:9100"
|
|
},
|
|
{
|
|
"name": "storage-01",
|
|
"ip": "10.10.10.11",
|
|
"prometheus_instance": "10.10.10.11:9100"
|
|
}
|
|
]
|
|
}
|