提交 91ae9509 authored 作者: testing's avatar testing

fix

上级 e1777d68
......@@ -76,3 +76,4 @@ groups:
annotations:
summary: '业务报警: 健康检查异常'
description: '{{$labels.instance}} 不可访问,请及时查看,当前状态码为{{$value}}'
......@@ -192,12 +192,12 @@ scrape_configs:
- job_name: 'nacos'
metrics_path: /probe
params:
module: [tcp]
module: [http_2xx]
static_configs:
- targets: ['172.26.239.34:8848']
- targets: ['http://172.26.239.41:8848/nacos','http://172.26.239.42:8848/nacos','http://172.26.239.43:8848/nacos']
labels:
instance: 'nacos'
group: 'dev'
group: 'cloud'
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
......@@ -207,6 +207,40 @@ scrape_configs:
replacement: blackbox_exporter:9115
- job_name: 'kafka'
metrics_path: /probe
params:
module: [tcp]
static_configs:
- targets: ['172.26.239.41:9092']
labels:
instance: 'kafka'
group: 'cloud'
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox_exporter:9115
- job_name: 'mongodb'
metrics_path: /probe
params:
module: [tcp]
static_configs:
- targets: ['172.26.239.42:27017']
labels:
instance: 'mongodb'
group: 'cloud'
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox_exporter:9115
# - job_name: 'pushgateway'
# scrape_interval: 10s
# dns_sd_configs:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论