feat: add Grafana dashboard template and Prometheus alerting rules for self-hosted workers#102
Draft
seemeroland wants to merge 1 commit into
Draft
feat: add Grafana dashboard template and Prometheus alerting rules for self-hosted workers#102seemeroland wants to merge 1 commit into
seemeroland wants to merge 1 commit into
Conversation
Add ready-to-import Grafana dashboard and Prometheus alerting rules for self-hosted Oz agent worker deployments in the new grafana/ directory. Deliverables: - grafana/oz-agent-worker-overview.json: Importable Grafana 10+ dashboard covering worker health, task throughput, latency, failure analysis, and WebSocket connectivity. Uses __inputs for datasource substitution. - grafana/alerts.yaml: Prometheus alerting rules for connectivity issues, fleet saturation, task failures, OOM kills, and unschedulable pods. - grafana/README.md: Import instructions for Grafana UI, Grafana API, and Prometheus Operator. Covers threshold tuning guidance. - README.md: Added Grafana dashboard reference in the Monitoring section. The dashboard connects to any Prometheus datasource (scrape or OTLP), includes an Instance variable for per-worker drill-down, and covers all oz_worker_* metrics exposed by the OpenTelemetry pipeline. Closes REMOTE-2110. Co-Authored-By: Oz <oz-agent@warp.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a ready-to-import Grafana dashboard and Prometheus alerting rules for enterprise customers running self-hosted Oz workers.
Addresses feedback from enterprise customer IMC (REMOTE-2110) who asked for Grafana dashboard templates they can import for their self-hosted Oz worker deployment.
Changes
New:
grafana/directorygrafana/oz-agent-worker-overview.json— Importable Grafana 10+ dashboard with 5 sections:image_pull,container_oom,unschedulable) and by phaseUses
__inputsfor datasource substitution at import time. Includes an Instance variable for per-worker drill-down.grafana/alerts.yaml— Prometheus alerting rules covering:OzWorkerFleetEmpty(critical),OzWorkerDisconnected,OzWorkerReconnectStorm,OzWorkerFleetSaturated,OzWorkerTasksRejected,OzWorkerHighFailureRate,OzWorkerImagePullFailures,OzWorkerContainerOOM,OzWorkerUnschedulablePods. Compatible with vanilla Prometheus and Prometheus Operator.grafana/README.md— Import instructions for Grafana UI, Grafana API, and direct URL. Covers alert rule deployment (vanilla + Prometheus Operator) and threshold tuning guidance.Updated:
README.mdAdded a "Grafana dashboard" subsection under the Monitoring section pointing to the
grafana/directory.Testing
python3 -m json.tool(valid)internal/metrics/metrics.gografana/README.mdConversation: https://staging.warp.dev/conversation/3861b9b2-ce49-46f7-baff-bfb3e2173b0b
Run: https://oz.staging.warp.dev/runs/019f4843-a02c-7ca4-aa34-0d867981dfbc
This PR was generated with Oz.