fix: mariadb conf

This commit is contained in:
nyyu 2023-11-03 09:09:05 +01:00
parent 5a24cf1ffe
commit 236e376231

View file

@ -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: