diff --git a/embed/templates/config/prometheus.yml.tpl b/embed/templates/config/prometheus.yml.tpl index 6dec42b071..65a4b8b4cf 100644 --- a/embed/templates/config/prometheus.yml.tpl +++ b/embed/templates/config/prometheus.yml.tpl @@ -298,6 +298,19 @@ scrape_configs: labels: group: 'tiflash' {{- end}} + relabel_configs: + - source_labels: [__address__] + target_label: __param_target + - source_labels: [__param_target] + target_label: instance + - target_label: __address__ + replacement: {{.BlackboxAddr}} + - job_name: "monitor_port_probe" + scrape_interval: 30s + metrics_path: /probe + params: + module: [tcp_connect] + static_configs: {{- if .PushgatewayAddr}} - targets: - '{{.PushgatewayAddr}}'