diagnose-entity-graph

Diagnose missing entities, edges, and label issues in Grafana Entity Graph using gcx commands.

581|46|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/grafana/gcx --skill diagnose-entity-graph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagnose-entity-graph
Source: https://github.com/grafana/gcx/tree/main/claude-plugin/skills/diagnose-entity-graph
Command: npx skills add https://github.com/grafana/gcx --skill diagnose-entity-graph

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When the Grafana Entity Graph shows missing services, no edges, disconnected clusters, or broken environment filtering, finding the root cause requires checking many layers: stack onboarding, source metrics, recording rules, and label pipelines. This Skill provides a systematic, step-by-step diagnostic workflow that narrows down the cause using gcx commands.

Core Features & Use Cases

  • Guided diagnosis playbook: Runs through stack health, entity counts, source metrics in Mimir, recording rules, edge source analysis, and label pipeline checks in a fixed order.
  • Label mapping detection: Identifies the common gap where metrics carry deployment_environment but not asserts_env, causing recording rules to silently drop data.
  • Per-service investigation: Uses Cypher queries and PromQL to trace why a specific service is missing entities or relationships.
  • Use Case: A user reports "services missing from entity graph" — the Skill runs gcx kg diagnose, reads the Orientation block, checks traces_service_graph_request_total and asserts:relation:calls, and pinpoints a relabeling misconfiguration with a concrete fix.

Quick Start

Ask the assistant to diagnose why the Entity Graph is empty or why a specific service has no edges in your Grafana environment.

Frequently Asked Questions about diagnose-entity-graph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose missing services in Grafana Entity Graph?

Run gcx kg diagnose to get an Orientation block matching common failure scenarios, then follow the step-by-step checks: verify stack health with gcx kg status, confirm entity counts with gcx kg stats, and check source metrics like traces_target_info and asserts:mixin_workload_job.

Why does my Entity Graph show entities but no edges?

Edges come from asserts:relation:calls, which requires an edge source metric such as traces_service_graph_request_total, http_server_requests_seconds_count, or istio_requests_total carrying an asserts_env label. If the source metric exists but lacks asserts_env, Mimir relabeling rules silently drop it.

How do I fix deployment_environment not mapping to asserts_env?

Go to Asserts app, Configuration, Connect Environment, Prometheus, and set the environment label to deployment_environment. This configures the Mimir relabeling pipeline to derive asserts_env from deployment_environment on all incoming metrics.

Can Entity Graph edges exist without OpenTelemetry tracing?

Yes. Edges can come from Prometheus-based sources like Spring Boot Actuator, nginx ingress, Istio, Kafka exporter, and cloud integrations for AWS RDS, DynamoDB, S3, and ALB. Only the app_o11y_servicegraph source requires traces.

What does a 404 or 403 error from gcx kg status mean?

A 404 means the Asserts plugin is not installed on the stack. A 403 from entity endpoints while kg status succeeds usually means the Knowledge Graph is not onboarded or the token lacks plugin access, which requires Asserts onboarding rather than gcx reconfiguration.

Why do old broken entities still appear after applying a fix?

The Knowledge Graph reads time-series data with a query lookback window, so old data reflecting the broken state keeps appearing for 5 to 15 minutes after the fix. The Entity Graph UI stabilizes on the corrected state within that window.