Loading conf/prometheus.yml +12 −3 Original line number Diff line number Diff line Loading @@ -44,11 +44,20 @@ scrape_configs: type: 'A' port: 9091 - job_name: 'zookeeper' dns_sd_configs: - names: - 'confluent_zookeeper-1' - 'confluent_zookeeper-2' - 'confluent_zookeeper-3' type: 'A' port: 9998 - job_name: 'kafka' dns_sd_configs: - names: - 'confluent_kf-1' - 'confluent_kf-2' - 'confluent_kf-3' - 'confluent_kafka-1' - 'confluent_kafka-2' - 'confluent_kafka-3' type: 'A' port: 9998 deploy/rules/swarm_service.rules.yml +2 −2 Original line number Diff line number Diff line Loading @@ -7,8 +7,8 @@ groups: labels: severity: warning annotations: description: Service '{{ $labels.label }}' has been restarted 3 times in last hour. summary: Service '{{ $labels.label }}' has been restarted 3 times in last hour. description: Service '{{ $labels.job }}' has been restarted 3 times in last hour. summary: Service '{{ $labels.job }}' has been restarted 3 times in last hour. - alert: service_down expr: up == 0 Loading Loading
conf/prometheus.yml +12 −3 Original line number Diff line number Diff line Loading @@ -44,11 +44,20 @@ scrape_configs: type: 'A' port: 9091 - job_name: 'zookeeper' dns_sd_configs: - names: - 'confluent_zookeeper-1' - 'confluent_zookeeper-2' - 'confluent_zookeeper-3' type: 'A' port: 9998 - job_name: 'kafka' dns_sd_configs: - names: - 'confluent_kf-1' - 'confluent_kf-2' - 'confluent_kf-3' - 'confluent_kafka-1' - 'confluent_kafka-2' - 'confluent_kafka-3' type: 'A' port: 9998
deploy/rules/swarm_service.rules.yml +2 −2 Original line number Diff line number Diff line Loading @@ -7,8 +7,8 @@ groups: labels: severity: warning annotations: description: Service '{{ $labels.label }}' has been restarted 3 times in last hour. summary: Service '{{ $labels.label }}' has been restarted 3 times in last hour. description: Service '{{ $labels.job }}' has been restarted 3 times in last hour. summary: Service '{{ $labels.job }}' has been restarted 3 times in last hour. - alert: service_down expr: up == 0 Loading