Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
Grafana Pyroscope avatar

Profilecli Plugin

  • 9 repo stars
  • Updated March 5, 2026
  • grafana/pyroscope-skills

pyroscope-skills

About

pyroscope-skills. Covers setup, configuration, and when-to-use guidance from upstream documentation for plugins/profilecli-plugin.

  • pyroscope-skills.
  • **`pprof`** on your PATH, or `go tool pprof` as a fallback
  • Configuration patterns for plugins/profilecli-plugin.
  • Evidence-backed steps from upstream documentation.
  • When-to-use criteria for plugins/profilecli-plugin versus alternatives.

Profilecli Plugin by the numbers

  • Data as of Aug 2, 2026 (Skillselion catalog sync)
At a glance

profilecli-plugin capabilities & compatibility

Capabilities
plugins/profilecli plugin quick start · plugins/profilecli plugin when to use guidance · plugins/profilecli plugin integration patterns
/plugin marketplace add grafana/pyroscope-skills
/plugin install profilecli-plugin@pyroscope-skills

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars9
Last updatedMarch 5, 2026
Repositorygrafana/pyroscope-skills

How do I use plugins/profilecli-plugin correctly?

pyroscope-skills

Who is it for?

Teams implementing plugins/profilecli-plugin workflows from the catalog.

Skip if: Skip when requirements clearly match a different specialized stack.

When should I use this skill?

User asks about plugins/profilecli-plugin, pyroscope-skills.

What you get

Working plugins/profilecli-plugin setup with validated configuration and next steps.

README.md

pyroscope-skills

A Claude Code plugin that queries a remote Pyroscope server to analyze profiling data and correlate hot functions with source code in your repository.

Installation

/plugin marketplace add https://github.com/grafana/pyroscope-skills
/plugin install profilecli-plugin@pyroscope-skills

Prerequisites

  • profilecli on your PATH — the skill will prompt you to download it from Pyroscope releases if not found
  • pprof on your PATH, or go tool pprof as a fallback

Setup

The skill requires a connection to a Pyroscope-compatible server.

Local Pyroscope

For a local instance, only PROFILECLI_URL is needed (defaults to http://localhost:4040):

export PROFILECLI_URL="http://localhost:4040"

Grafana Cloud

Set the following environment variables:

# Data source proxy URL
export PROFILECLI_URL="https://my-grafana.example.com/api/datasources/proxy/uid/<datasource-uid>"

# Service account token (format: glsa_...)
export PROFILECLI_TOKEN="glsa_your_service_account_token"

# Optional: tenant ID for multi-tenant setups
export PROFILECLI_TENANT_ID="your-tenant-id"

Create a service account token at Grafana > Administration > Service Accounts > Add token with the Viewer role.

Usage

The profilecli-insights skill lets you ask free-form questions about service performance. Answers are backed by real profiling data and correlated with your source code.

/profilecli-insights Why is the distributor slow?
/profilecli-insights What's using the most memory in the ingester?
/profilecli-insights Show me CPU hot paths for the query-frontend

How it works

  1. Discovers services — queries available services and profile types from your Pyroscope instance, correlating them with the current repository via service_repository labels
  2. Fetches profiles — queries CPU, memory, goroutine, mutex, and block profiles using profilecli and analyzes them with pprof
  3. Maps to source code — strips module prefixes from pprof file paths to locate the corresponding files in your checkout, and checks git ref alignment to warn if line numbers may be stale
  4. Delivers a report — produces a structured analysis with a summary, ranked hot functions table, source code snippets, and prioritized optimization recommendations

The skill also highlights significant runtime functions such as runtime.mallocgc (allocation pressure), runtime.gcDrain (GC pressure), and runtime.futex (lock contention).

License

AGPL-3.0

Related skills

FAQ

What does plugins/profilecli-plugin do?

pyroscope-skills

When should I use plugins/profilecli-plugin?

User asks about plugins/profilecli-plugin, pyroscope-skills.

Is this skill safe to install?

Review the Security Audits panel on this page before installing in production.

DevOps & CI/CDmonitoring

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.