metrics-variables

Navigate Metrics-variables modules and locate entry points like sortRelatedMetrics and sortMetricsByCount.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Metrics-variables skill organizes, documents, and navigates the Metrics-variables area of the metrics-drilldown project to speed understanding and editing of related code paths.

Core Features & Use Cases

  • Code navigation: quickly locate entry points like sortRelatedMetrics, sortMetricsByCount, and sortMetricsAlphabetically.
  • Symbol and file mapping: provides clear mappings for key symbols, classes, and functions across MetricsVariable-related modules.
  • Onboarding and modification: enables developers to explore and extend metrics-variables behavior, such as variable filtering, sorting, and related metrics logic.

Quick Start

Review the code under src/MetricsReducer/metrics-variables to identify the core data flows and entry points you plan to modify.

Frequently Asked Questions about metrics-variables

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

FAQPage Schema
How do I navigate metrics sorting logic in a Grafana drilldown project?

To navigate metrics sorting logic, locate entry points like sortRelatedMetrics, sortMetricsByCount, and sortMetricsAlphabetically within the MetricsReducer modules to trace core data flows. This clarifies key symbols and file mappings for faster code exploration and modification.

What is the best way to map MetricsVariable symbols to their source files?

Mapping MetricsVariable symbols to source files involves checking the code under src/MetricsReducer/metrics-variables to identify core data flows. This provides clear mappings for key symbols, classes, and functions across related modules to speed up code onboarding.

Can I modify variable filtering and sorting behavior without breaking related metrics logic?

Modifying variable filtering and sorting behavior requires analyzing entry points and implementation details across MetricsVariable modules. By reviewing code references and tests, you can extend sorting behavior while ensuring related metrics logic remains intact during updates.

Where can I find entry points for sorting metrics alphabetically or by count?

Entry points for sorting metrics alphabetically or by count are located within the metrics-drilldown project structure. You can find sortMetricsAlphabetically and sortMetricsByCount by reviewing the code under src/MetricsReducer/metrics-variables to guide your code modifications.

Do I need to review tests before extending metrics-variables behavior?

Reviewing tests is necessary before extending metrics-variables behavior to understand existing implementation details and code references. This ensures that modifications to variable filtering, sorting, and related metrics logic do not introduce regressions in the drilldown workflow.