stefanprodan / dockprom

Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager
MIT License
6.02k stars 1.72k forks source link

how to handle alerts for a large group of somehow same container ? #259

Closed ImmoWetzel closed 2 years ago

ImmoWetzel commented 2 years ago

I do have 100 container to control. so I need to replace name=jenkins into name=simulators. this means I do have a cpu usage alert like rate(container_cpu_usage_seconds_total{name=~"simulators-."}[1m]) / count(node_cpu_seconds_total{mode="system"}) * 100 > 3 but this doesnt work. Any proposal ?

nightah commented 2 years ago

I'm not exactly sure if you're asking about Grafana Alerts or otherwise.

Can you describe what specifically you're having issues with?