Skip to content

Commit

Permalink
fix: exporter and grafana are abnormal in prometheus (#1853)
Browse files Browse the repository at this point in the history
  • Loading branch information
srstack authored Apr 24, 2022
1 parent 762dd94 commit 8a84f00
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions embed/templates/config/prometheus.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}'
Expand Down

0 comments on commit 8a84f00

Please sign in to comment.