grafana-monitoring
Skill9 starsChanged 6 months agoMITView on GitHub
Grafana Cloud monitoring — dashboards, alerts, Loki logs, Prometheus metrics, Tempo traces, incidents, Sift error investigation. Use for infrastructure and application observability. Triggers on "check logs", "show logs", "look at logs", "read logs", "view logs", "investigate errors", "query metrics", "analyze traces", "check latency", "find slow requests", "error rate", "why is API slow", "production errors", "job failures", "LLM costs", "check alerts", "firing alerts", "create incident", "oncall", "error patterns", "indexing status", "repository indexing", "is repo indexed", "indexing progress", "indexing errors", "indexer". ANY request about logs goes through this skill (Loki). For repository indexing status — query indexer logs. For product analytics use posthog-analytics instead.
In this repository78 other files it gives its agents.
- anti-pattern-auditSkill
- brand-storytellingSkill
- business-investigationSkill
- ceo-weekly-reviewSkill
- cold-emailSkill
- community-buildingSkill
- company-intelSkill
- competitive-analysisSkill
- competitor-researchSkill
- composio-cliSkill
- conducting-user-interviewsSkill
- content-strategySkill
- copywritingSkill
- daily-recapSkill
- decision-playbookSkill
- designing-growth-loopsSkill
- discovery-debriefSkill
- email-sequenceSkill
- enterprise-salesSkill
- evening-recapSkill
- exa-code-searchSkill
- exa-company-researchSkill
- exa-lead-genSkill
- exa-people-researchSkill
- exa-personal-siteSkill
- exa-x-searchSkill
- feedback-trackerSkill
- find-email-by-nameSkill
- focus-keeperSkill
- founder-salesSkill
- fpf-problem-solvingSkill
- github-stars-monitorSkill
- google-calendarSkill
- humanizerSkill
- hypothesis-trackerSkill
- idea-generatorSkill
- install-openclaw-to-digitaloceanSkill
- install-openclaw-to-hetznerSkill
- install-openclaw-to-ycSkill
- launch-marketingSkill
- lead-enrichmentSkill
- measuring-product-market-fitSkill
- meeting-prepSkill
- metrics-briefingSkill
- morning-briefSkill
- openclaw-guideSkill
- openclaw-user-onboardingSkill
- orthogonalSkill
- outreach-senderSkill
- person-lookupSkill
- ph-launch-timelineSkill
- pipeline-managerSkill
- positioning-messagingSkill
- positioning-workshopSkill
- posthog-analyticsSkill
- prepare-yc-workshopSkill
- pricing-strategySkill
- problem-definitionSkill
- product-hunt-launchSkill
- product-led-salesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Call the native MCP tool grafana__<tool-name> directly (server=grafana, tool=<tool-name>).
- Very specific: line 233
Prometheus: Use relative (now-1h, now-24h) or RFC3339
- Distinctive: line 235
Always verify current date: before time-sensitive queries
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Grafana Monitoring
Access to [YOUR_PRODUCT]'s Grafana Cloud instance for infrastructure monitoring, alerting, and observability.
Instance: https://<your-stack>.grafana.net
Tool
Call the native MCP tool grafana__<tool-name> directly (server=grafana, tool=<tool-name>). Parameters go in a JSON object — examples below use shorthand key=value.
Datasources
| Pillar | Name | UID | Type |
| Logs | grafanacloud-[your-product]-logs | grafanacloud-logs | Loki |
| Metrics | grafanacloud-[your-product]-prom | grafanacloud-prom | Prometheus |
| Traces | grafanacloud-[your-product]-traces | grafanacloud-traces | Tempo |
Services
| Service | Description |
web-server | Main API server (.NET) |
jobs-heavy | Heavy background jobs (.NET) |
jobs-light | Lightweight background jobs (.NET) |
indexer | Primary indexing pipeline |
ai-server | AI agent coordination (Python) |
Key Tools
Logs (Loki)
See references/loki-logql.md for complete LogQL guide.
# Errors from web server
grafana__query_loki_logs datasourceUid="grafanacloud-logs" logQL='{service_name="web-server", level=~"ERROR|Error|Fatal"}'
# Search for exception
grafana__query_loki_logs datasourceUid="grafanacloud-logs" logQL='{service_name="web-server"} |= "NullReferenceException"'
# Job failures
grafana__query_loki_logs datasourceUid="grafanacloud-logs" logQL='{service_name=~"jobs-heavy|jobs-light"} |= "failed"'
# Check log volume before querying
grafana__query_loki_stats datasourceUid="grafanacloud-logs" logQL='{service_name="web-server"}'
# Discover labels
grafana__list_loki_label_names datasourceUid="grafanacloud-logs"
grafana__list_loki_label_values datasourceUid="grafanacloud-logs" labelName="service_name"
# Auto-detected log patterns
grafana__query_loki_patterns datasourceUid="grafanacloud-logs"Metrics (Prometheus)
See references/prometheus-metrics.md for available metrics and PromQL patterns.
# HTTP request latency (p95)
grafana__query_prometheus datasourceUid="grafanacloud-prom" expr='histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket{job="web-server"}[1h])))' startRfc3339="now-1h" endRfc3339="now" stepSeconds=300
# Error rate percentage
grafana__query_prometheus datasourceUid="grafanacloud-prom" expr='100 * sum(rate(http_server_request_duration_seconds_count{http_response_status_code=~"5.."}[5m])) / sum(rate(http_server_request_duration_seconds_count[5m]))' startRfc3339="now-1h" endRfc3339="now" stepSeconds=60
# Chat latency by search mode
grafana__query_prometheus datasourceUid="grafanacloud-prom" expr='sum by (search_mode) (rate(gen_ai_client_operation_duration_seconds_sum[1h]))' startRfc3339="now-1h" endRfc3339="now" stepSeconds=300
# Discover metrics
grafana__list_prometheus_metric_names datasourceUid="grafanacloud-prom"
grafana__list_prometheus_metric_metadata datasourceUid="grafanacloud-prom"
grafana__list_prometheus_label_names datasourceUid="grafanacloud-prom"Aggregated metrics note: Grafana Cloud aggregates high-cardinality metrics. Always use aggregation functions (sum, rate, histogram_quantile), never query raw series.
Traces (Tempo)
See references/tempo-traceql.md for TraceQL syntax and trace analysis.
# Find slow requests (>10s)
grafana__tempo_traceql-search datasourceUid="grafanacloud-traces" query='{span:duration > 10s}'
# Average duration by search mode
grafana__tempo_traceql-metrics-instant datasourceUid="grafanacloud-traces" query='{span.search.mode != ""} | avg_over_time(duration) by (span.search.mode)'
# Error traces by service
grafana__tempo_traceql-metrics-range datasourceUid="grafanacloud-traces" query='{span:status = error} | rate() by (resource.service.name)'
# Get specific trace
grafana__tempo_get-trace traceId="abc123"
# Discover trace attributes
grafana__tempo_get-attribute-names datasourceUid="grafanacloud-traces"
grafana__tempo_get-attribute-values datasourceUid="grafanacloud-traces" attributeName="service.name"Dashboards
See references/dashboards.md for full dashboard list and deeplink generation.
# Search dashboards
grafana__search_dashboards query="[YOUR_PRODUCT]"
# Get dashboard summary
grafana__get_dashboard_summary uid="cdiz9piuoa3gge"
# Get panel queries
grafana__get_dashboard_panel_queries dashboardUid="cdiz9piuoa3gge"
# Generate deeplink
grafana__generate_deeplink resourceType="dashboard" dashboardUid="cdiz9piuoa3gge"Key dashboards:
- Agents GenAI Observability (
cdiz9piuoa3gge) — LLM operations, tokens, costs - Hangfire Jobs Monitoring (
sc5pdf5) — Background job health - [YOUR_PRODUCT] Web Server Test (
040cee27-2c68-47e4-8e73-e69975e8cc4f) — API performance
Alerts
# Check firing alerts
grafana__list_alert_groups
# List all alert rules
grafana__list_alert_rules
# Get specific alert rule
grafana__get_alert_rule_by_uid uid="abc"
# Get specific alert group
grafana__get_alert_group groupId="abc"Incidents
# List incidents
grafana__list_incidents
# Get incident details
grafana__get_incident incidentId="abc"
# Create incident
grafana__create_incident title="API latency spike" severity="minor"
# Add investigation notes
grafana__add_activity_to_incident incidentId="abc" body="Root cause: connection pool exhaustion"Error Investigation (Sift)
Automated error pattern detection — use before manual log trawling.
# Auto-detect error patterns
grafana__find_error_pattern_logs datasourceUid="grafanacloud-logs"
# Find slow requests
grafana__find_slow_requests datasourceUid="grafanacloud-logs"
# List/get sift investigations
grafana__list_sift_investigations
grafana__get_sift_analysis analysisId="abc"Annotations
# Mark deployment on dashboards
grafana__create_annotation text="Deployed v2.1" dashboardUID="cdiz9piuoa3gge"
# Search annotations (correlate events)
grafana__get_annotationsOnCall
# Who is on call now
grafana__get_current_oncall_users
# List schedules
grafana__list_oncall_schedulesDatasources
# List all datasources (discover UIDs)
grafana__list_datasourcesInvestigation Workflows
"Why is the API slow?"
query_prometheus— HTTP latency p95tempo_traceql-search— find slow traces (>5s)query_loki_logs— check logs around slow request timestamps
"Are there errors in production?"
find_error_pattern_logs— auto-detect error patterns (Sift)query_loki_logs— error logs by servicetempo_traceql-search— error traceslist_alert_groups— check firing alerts
"How is search performance?"
tempo_traceql-metrics-instant— avg duration by search modequery_prometheus— LLM operation latency by search modequery_loki_logs— specific search errors
"What is the indexing status of a repository?"
query_loki_logs—{service_name="indexer"}— recent activityquery_loki_logs—{service_name="indexer"} |= "<repo-name>"— filter by repoquery_loki_logs—{service_name="indexer"} |= "error"— check for indexing errorsquery_prometheus— indexer metrics (if available)
General investigation flow
list_datasources— get datasource UIDs (if unsure)find_error_pattern_logs/find_slow_requests— Sift auto-detectionquery_loki_logs— search for errorsquery_prometheus— check related metricstempo_traceql-search— trace analysissearch_dashboards— find relevant dashboardscreate_incident— if critical
Time Ranges
- Prometheus: Use relative (
now-1h,now-24h) or RFC3339 - Tempo: RFC3339 format, max 25h for metrics queries
- Always verify current date before time-sensitive queries
Output Format
Present results concisely for Telegram:
- Status indicators for alerts/incidents
- Key metric values with time context
- Log excerpts (max 5 lines, most relevant)
- Link to dashboard when available
Related Skills
- posthog-analytics — product analytics (user behavior, funnels)
- metrics-briefing — CEO-level metric interpretation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

