[修改]node-exporter特权模式修正

This commit is contained in:
10908
2024-09-25 10:57:51 +08:00
committed by Coding
parent 359709d7b5
commit d233af6f50
4 changed files with 11 additions and 9 deletions

View File

@@ -24,4 +24,4 @@ RUN architecture=$(uname -m); \
RUN mkdir /host
CMD ["node_exporter","--path.rootfs=/host"]
CMD ["node_exporter","--path.rootfs=/host","--web.listen-address=0.0.0.0:9100"]

View File

@@ -4,7 +4,7 @@ global:
scrape_configs:
- job_name: 'node_exporter'
static_configs:
- targets: [ 'node-exporter:9100' ]
- targets: [ '172.17.0.1:9100' ]
- job_name: 'opcua_exporter'
static_configs: