diff --git a/conf/prometheus/prometheus.yml b/conf/prometheus/prometheus.yml index b30e9ea..f0adb70 100644 --- a/conf/prometheus/prometheus.yml +++ b/conf/prometheus/prometheus.yml @@ -45,7 +45,15 @@ scrape_configs: - job_name: "mariadb" 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" static_configs: