fetchers

Inspect Fetchers entry points and map metric extraction symbols in src/.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers understand how the Fetchers module extracts and surfaces metrics in metrics-drilldown, enabling faster onboarding and safer modifications.

Core Features & Use Cases

  • Understand entry points: Locate core functions like extractMetricNames, fetchAlertingMetrics, and fetchDashboardMetrics to map data flows.
  • Symbol & relationship mapping: Identify key symbols and their connections to labels and dashboards.
  • Maintenance guidance: Provide a clear reference for modifying fetchers-related functionality and adding tests.

Quick Start

Inspect the listed entry points to quickly trace how fetchers extract metric names and assemble dashboard metrics.

Frequently Asked Questions about fetchers

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

FAQPage Schema
How do I trace metric names extracted for Grafana dashboards?

To trace metric names for Grafana dashboards, locate the extractMetricNames entry point in the source code to map how the Fetchers module surfaces and assembles dashboard metrics from data sources.

What is the best way to modify PromQL fetchers for alerting metrics?

Modifying PromQL fetchers for alerting metrics involves updating the fetchAlertingMetrics function in the src directory, ensuring you map key symbols and references to maintain data flow traceability.

How do I add new metrics sources to dashboard fetchers?

Adding new metrics sources to dashboard fetchers requires applying modifications to extractMetricNames, fetchAlertingMetrics, and fetchDashboardMetrics in the src code to integrate the new data extraction logic.

Can I use this approach to map symbols and relationships for dashboard metrics?

Yes, you can use this approach to map symbols and relationships for dashboard metrics by inspecting the listed entry points to identify connections between core fetcher functions, labels, and dashboards.

Does this method require existing code analysis to locate fetcher entry points?

Yes, this method requires existing code analysis to locate fetcher entry points, relying on enumerating symbols and references within the repository to ensure discoverability and traceability of metric extraction logic.