Skip to content

Commit

Permalink
use new job
Browse files Browse the repository at this point in the history
  • Loading branch information
srstack committed Apr 21, 2022
1 parent 2a57222 commit 0945772
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions embed/templates/config/prometheus.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,11 @@ scrape_configs:
scrape_interval: 30s
metrics_path: /probe
params:
{{- if .TLSEnabled}}
module: [tls_connect]
{{- else}}
module: [tcp_connect]
{{- end}}
static_configs:
- targets:
{{- range .TiDBStatusAddrs}}
Expand Down Expand Up @@ -294,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 0945772

Please sign in to comment.