fix: mariadb conf
This commit is contained in:
parent
5a24cf1ffe
commit
236e376231
1 changed files with 9 additions and 1 deletions
|
@ -45,7 +45,15 @@ scrape_configs:
|
||||||
|
|
||||||
- job_name: "mariadb"
|
- job_name: "mariadb"
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["192.168.0.4:9104"]
|
- targets:
|
||||||
|
- unix:///run/mysqld/mysqld.sock
|
||||||
|
relabel_configs:
|
||||||
|
- source_labels: [__address__]
|
||||||
|
target_label: __param_target
|
||||||
|
- source_labels: [__param_target]
|
||||||
|
target_label: instance
|
||||||
|
- target_label: __address__
|
||||||
|
replacement: 192.168.0.4:9104
|
||||||
|
|
||||||
- job_name: "kube"
|
- job_name: "kube"
|
||||||
static_configs:
|
static_configs:
|
||||||
|
|
Loading…
Add table
Reference in a new issue