cuigh / prometheus

The Prometheus monitoring system and time series database.
https://prometheus.io/
Apache License 2.0
3 stars 2 forks source link

add Rule Discovery for Swarm #2

Closed dongdongking008 closed 6 years ago

dongdongking008 commented 6 years ago

service label: prometheus.rules.xxxRuleName: { "Alert": "HighCPURatio", "Expr": "os_cpu_used_ratio{service=\"{{.Service}}\"} > 0.7", "For": "30s", "Annotations": { "Summary": "High CPU Ratio on {{$labels.instance}}, current value: {{$value}}" } }