Comments (3)
You can add alert rules in https://github.com/stefanprodan/swarmprom/blob/master/prometheus/rules/swarm_task.rules.yml and redeploy.
An alert would look like:
- alert: kafka
expr: count(container_memory_rss{container_label_com_docker_swarm_task_name=~".+kafka.+"})
< 3
for: 1m
annotations:
description: 'Kafka cluster down'
summary: 'Kafka cluster nodes count < 3'
from swarmprom.
Hi Stefan,
Thanks for the reply.
Now when I put this conf and redeployed the stack, the count doubled to 6 and I 'm getting duplicate records.
For the same kafka instance I 'm getting two records. So is this method reliable?
container_memory_rss{container_label__base_version="x86_64-0.4.5",container_label__version="",container_label_com_docker_stack_namespace="kafka",container_label_com_docker_swarm_node_id="lftgekvut6idwdb60omqp612i",container_label_com_docker_swarm_service_id="i6ebvyb9zdtvecr2jvipfxubc",container_label_com_docker_swarm_service_name="kafka_kafka0",container_label_com_docker_swarm_task="",container_label_com_docker_swarm_task_id="py5vx3sye1ou9vxdqvelv6m1r",container_label_com_docker_swarm_task_name="kafka_kafka0.1.py5vx3sye1ou9vxdqvelv6m1r",id="/docker/5a781f09efdeb048a573ab4a3a6d14d56eb7261a93e8a86442e909c476397ee0",image="hyperledger/fabric-kafka:latest",instance="10.0.0.87:8080",job="cadvisor",name="kafka_kafka0.1.py5vx3sye1ou9vxdqvelv6m1r"} 268419072 container_memory_rss{container_label__base_version="x86_64-0.4.5",container_label__version="",container_label_com_docker_stack_namespace="kafka",container_label_com_docker_swarm_node_id="lftgekvut6idwdb60omqp612i",container_label_com_docker_swarm_service_id="i6ebvyb9zdtvecr2jvipfxubc",container_label_com_docker_swarm_service_name="kafka_kafka0",container_label_com_docker_swarm_task="",container_label_com_docker_swarm_task_id="py5vx3sye1ou9vxdqvelv6m1r",container_label_com_docker_swarm_task_name="kafka_kafka0.1.py5vx3sye1ou9vxdqvelv6m1r",id="/docker/5a781f09efdeb048a573ab4a3a6d14d56eb7261a93e8a86442e909c476397ee0",image="hyperledger/fabric-kafka:latest",instance="10.0.0.98:8080",job="cadvisor",name="kafka_kafka0.1.py5vx3sye1ou9vxdqvelv6m1r"}
from swarmprom.
It stabilized after a while.
from swarmprom.
Related Issues (20)
- How do I clean the history of prometheus? HOT 1
- Updating packages HOT 2
- Docker compose empty environment variables HOT 1
- Grafana Loki integration
- Running swarmprom behind traefik HOT 3
- Docker swarm node - no data showing HOT 1
- Grafana & Caddy service is instantly terminating HOT 3
- Docker Swarm Nodes dashboard empty HOT 1
- Node exporter not starting through docker service create HOT 1
- add blackbox_exporter
- node_meta only contains mapping for 1 host HOT 1
- Mail notification HOT 1
- Mountpoint set to "/", swap file returns NaN and upgrade of containers ? HOT 1
- worker node details are missing in docker swarm node dashboard HOT 1
- swarm_node.rules.yml: no such file or directory
- Replace Unsee with it's successor Karma
- Swarmprom for kubernetes
- node exporter sends whole nodes metrics
- Custom Grafana Dashboards on Startup
- About project future HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swarmprom.