extensions

Explain Grafana Metrics Drilldown extension utilities for drilldown links and PromQL parsing.

31|18|Updated Oct 15, 2024
One-click install
npx skills add https://github.com/grafana/metrics-drilldown --skill extensions-grafana
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extensions
Source: https://github.com/grafana/metrics-drilldown/tree/main/.claude/skills/generated/extensions
Command: npx skills add https://github.com/grafana/metrics-drilldown --skill extensions-grafana

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This section helps developers understand and customize the Extensions layer of Grafana Metrics Drilldown, enabling clearer navigation, maintainability, and extension compatibility across drilldown links and URL construction.

Core Features & Use Cases

  • Explains critical extension utilities like configureDrilldownLink, buildDrilldownUrl, and parsePromQLQuery.
  • Guides on how to explore and modify datasource URL creation and navigation behavior.
  • Useful for onboarding new contributors or auditing extension-related functionality.

Quick Start

Inspect the extension utilities under src/extensions to understand how drilldown links are built.

Frequently Asked Questions about extensions

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

FAQPage Schema
How do I configure drilldown links in Grafana Metrics Drilldown?

Configure drilldown links in Grafana Metrics Drilldown by using the configureDrilldownLink utility, which allows developers to customize navigation flows and datasource URL creation within the extension layer for maintainable routing.

How does buildDrilldownUrl work for datasource URL construction?

buildDrilldownUrl works by constructing the target datasource URLs for navigation within the Metrics Drilldown extension layer, enabling developers to explore and modify how drilldown links route users through Grafana dashboards.

Can I parse PromQL queries within the Grafana Metrics Drilldown extension layer?

Yes, you can parse PromQL queries within the extension layer using the parsePromQLQuery utility, which supports developers auditing and configuring how metric queries are handled and mapped in the TypeScript source.

What TypeScript source mappings exist for Metrics Drilldown extension utilities?

TypeScript source mappings for Metrics Drilldown extension utilities are located under the src/extensions directory, covering configureDrilldownLink, buildDrilldownUrl, and parsePromQLQuery for navigation flows and URL construction auditing.

Why do I need to audit the Extensions area of Grafana Metrics Drilldown?

Auditing the Extensions area of Grafana Metrics Drilldown is needed to ensure extension compatibility, maintain clear navigation behavior, and verify that drilldown links and datasource URL creation function correctly across updates.