[修改]修改网络模式为host,调整了各个服务的网络地址

This commit is contained in:
makotocc0107
2024-09-26 11:04:26 +08:00
committed by Coding
parent eb3f49f00f
commit 491b2265d2
8 changed files with 14 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
backend = "etcd"
nodes = [
"http://etcd:2379",
"http://127.0.0.1:2379",
]
watch = true

View File

@@ -5,12 +5,12 @@ scrape_configs:
- job_name: 'node_exporter'
scrape_interval: {{ getv "/time/node_exporter_scrape_interval"}}{{ getv "/time/node_exporter_scrape_interval_unit" }}
static_configs:
- targets: [ 'node-exporter:9100' ]
- targets: [ '127.0.0.1:9100' ]
- job_name: 'opcua_exporter'
scrape_interval: {{ getv "/time/opcua_scrape_interval"}}{{ getv "/time/opcua_scrape_interval_unit" }}
static_configs:
- targets: [ 'opcua-exporter:8191' ]
- targets: [ '127.0.0.1:8191' ]
{{ if getv "/remote_write/state" }}
remote_write:
- url: {{ getv "/remote_write/url" }}

View File

@@ -4,8 +4,8 @@ global:
scrape_configs:
- job_name: 'node_exporter'
static_configs:
- targets: [ '172.17.0.1:9100' ]
- targets: [ '127.0.0.1:9100' ]
- job_name: 'opcua_exporter'
static_configs:
- targets: [ 'opcua-exporter:8191' ]
- targets: [ '127.0.0.1:8191' ]