Skip to content

Commit 775f82e

Browse files
chore: update configs
- add remote targets - change uid to match repo
1 parent de3962f commit 775f82e

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

config/grafana/dashboards/node-exporter.json.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23641,7 +23641,7 @@
2364123641
},
2364223642
"timezone": "browser",
2364323643
"title": "Host-Full-Dashboard",
23644-
"uid": "sajosam",
23644+
"uid": "pythoninthegrass",
2364523645
"version": 2,
2364623646
"weekStart": ""
23647-
}
23647+
}

config/prometheus.yml.tpl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ scrape_configs:
66
static_configs:
77
- targets: ['localhost:${prometheus_port}']
88

9-
- job_name: 'node-exporter'
9+
- job_name: 'node'
1010
static_configs:
11-
- targets: ['node-exporter:${node_exporter_port}']
11+
- targets: [
12+
'node-exporter:${node_exporter_port}', # Local container using Docker network DNS
13+
%{ for host in node_exporter_hosts ~}
14+
'${host.ip}:${node_exporter_port}', # Remote hosts using IP addresses
15+
%{ endfor ~}
16+
]

0 commit comments

Comments
 (0)