提交 f821d355 authored 作者: root's avatar root

update

上级 cbf8c5de
...@@ -121,20 +121,35 @@ services: ...@@ -121,20 +121,35 @@ services:
tty: true tty: true
mongodb_exporter: kafka_exporter:
image: percona/mongodb_exporter:0.34.0 image: danielqsj/kafka-exporter:latest
restart: on-failure container_name: kafka_exporter
environment: restart: always
- TZ= Asia/Shanghai
- mongodb_exporter_IP=172.26.239.42 #mongpodb ip
- mongodb_port=27017 #mongodb port
volumes:
- /etc/localtime:/etc/localtime:ro
ports :
- 9103:9001
networks: networks:
- back-tier - back-tier
- front-tier - front-tier
command:
- '--kafka.server=172.26.239.41:9092'
ports:
- 9308:9308
tty: true
# mongodb_exporter:
# image: percona/mongodb_exporter:0.34.0
# restart: on-failure
# environment:
# - TZ= Asia/Shanghai
# - mongodb_exporter_IP=172.26.239.42 #mongpodb ip
# - mongodb_port=27017 #mongodb port
# volumes:
# - /etc/localtime:/etc/localtime:ro
# ports :
# - 9103:9001
# networks:
# - back-tier
# - front-tier
# pushgateway: # pushgateway:
# image: prom/pushgateway # image: prom/pushgateway
......
...@@ -206,25 +206,14 @@ scrape_configs: ...@@ -206,25 +206,14 @@ scrape_configs:
- target_label: __address__ - target_label: __address__
replacement: blackbox_exporter:9115 replacement: blackbox_exporter:9115
- job_name: 'kafka' - job_name: 'kafka'
metrics_path: /probe
params:
module: [tcp]
static_configs: static_configs:
- targets: ['172.26.239.41:9092'] - targets: ['172.26.239.42:9308']
labels: labels:
instance: 'kafka' instance: 'kafka'
group: 'cloud' 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' - job_name: 'mongodb'
metrics_path: /probe metrics_path: /probe
params: params:
module: [http_2xx] module: [http_2xx]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论