add cAdvisor and document detailed alert queries in README
Add cAdvisor container to the monitoring stack for container-level metrics. Configure Alloy to scrape cAdvisor. Expand the README Recommended Alerts section with exact PromQL/LogQL queries, thresholds, and Grafana alert rule configuration for all five alerts.
This commit is contained in:
@@ -54,6 +54,18 @@ prometheus.scrape "node" {
|
||||
scrape_interval = "60s"
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// cAdvisor container metrics -> Grafana Cloud Prometheus
|
||||
// ============================================================
|
||||
|
||||
prometheus.scrape "cadvisor" {
|
||||
targets = [{"__address__" = "cadvisor:8080"}]
|
||||
forward_to = [prometheus.remote_write.grafana_cloud.receiver]
|
||||
|
||||
scrape_interval = "60s"
|
||||
metrics_path = "/metrics"
|
||||
}
|
||||
|
||||
prometheus.remote_write "grafana_cloud" {
|
||||
endpoint {
|
||||
url = env("GRAFANA_CLOUD_PROMETHEUS_URL")
|
||||
|
||||
Reference in New Issue
Block a user