---
title: "Profilecli Source Insights: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/skills/grafana-profilecli-insights/
description: "Retrieve Pyroscope profiles and map hot functions to the corresponding source checkout."
---

# Profilecli Source Insights: review, setup & limitations · Undominated.ai

> Retrieve Pyroscope profiles and map hot functions to the corresponding source checkout.

[← Explore all skills](/skills/)

OBSERVABILITY / grafana

# Profilecli Source Insights

Retrieve Pyroscope profiles and map hot functions to the corresponding source checkout.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/grafana/skills/tree/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-lgtm/profilecli-insights)

SOURCE REVIEW

 Reviewed 2026-10-15
 Evidence 4 linked sources
 Publisher grafana
 Licence [Apache-2.0 ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/LICENSE)
 Revision 1ccacf29049f
 [Read what was—and wasn’t—checked ↓](#review)

“Query live Pyroscope profiles with profilecli, analyze them with pprof, and correlate hot functions with checked-out source code. …”

 [grafana · upstream description ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-lgtm/profilecli-insights/SKILL.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - It queries an existing Pyroscope server with profilecli and maps hot functions back to this checkout only when the module path matches.
- PROFILECLI_URL is mandatory, and third-party frames are reported without pretending their source is in the repo.
- The procedure discovers profile types rather than assuming them, matches service_repository with origin, and checks git_ref before line-level recommendations.
- Separate flat self-time from cumulative callee time

### A good fit for

 - Explaining a profile from a running Pyroscope or Grafana datasource proxy
- Separate flat self-time from cumulative callee time
- Check deployed git_ref alignment before interpreting profile line numbers
- Resolve ambiguous profile service selection against the checkout’s repository identity.

### Weigh up before choosing

 - The skill does not start profiling; it reads profiles that already exist.
- A local server on port 4040 is only one possible PROFILECLI_URL.
- Line numbers are not trusted when the pprof git_ref differs from HEAD.
- This review did not execute the resource.
- A missing build git_ref leaves source alignment unverified; a different checkout can map samples to stale lines.
- Hot functions suggest hypotheses, not measured benefits from proposed optimizations. Empty windows require data discovery before conclusions.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - skills/grafana-lgtm/profilecli-insights/SKILL.md
- README.md
- LICENSE

### Our findings

 - The procedure says not to skip steps, starting with whether profilecli is installed.
- PROFILECLI_URL is required and may be http://localhost:4040 or a Grafana datasource proxy that also needs PROFILECLI_TOKEN.
- Third-party or runtime frames are still reported, but their source cannot be read from this checkout.
- The skill does not treat a module path with an @version suffix as this repository.
- The procedure discovers profile types rather than assuming them, matches service_repository with origin, and checks git_ref before line-level recommendations.
- Service discovery compares service_repository with the checkout remote and requires a user choice when the question cannot be mapped clearly to a service.

### Not established by this review

 - The resource was not executed and its tools were not called.
- No skill execution, authenticated service operation, or outcome benchmark was performed.
- Not executed: it was not installed or run.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Add a skill to your workflow.

[Upstream setup instructions ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/README.md)

DOCUMENTED COMMAND

 npx skills add grafana/skills/skills/grafana-lgtm/profilecli-insights Copy command ↗

Run in your terminal to choose your AI tools, project or global scope, and installation method. This short command follows the current upstream version; the review covers the revision shown above.

 Optional: install the reviewed revision

Keeps the original source and installer version where recorded, while leaving your AI tools and installation scope for you to choose.

 npx skills add https://github.com/grafana/skills/tree/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-lgtm/profilecli-insights Copy reviewed-revision command ↗ - Install the pinned skill directory interactively, retaining its bundled references and scripts.
- Verify profilecli and pprof or go tool pprof; discover available profile types and services.
- Configure PROFILECLI_URL and the appropriate Viewer service-account access for the Grafana datasource proxy, with a tenant ID where required.
- Download a bounded profile window, compare repository/build identity and inspect matching source.

### Before you start

 - profilecli and pprof or Go
- Authorized read access to a Pyroscope-compatible server
- The relevant source checkout

### Compatibility

Agents supporting directory-based SKILL.md instructions

### Local instructions; runtime access depends on the workflow

 - Query remote profile metadata and samples with configured credentials; write a temporary pprof file and read local git/source history.

### Cost model

The skill is free; service usage and infrastructure can incur charges.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [Pinned skill definition ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-lgtm/profilecli-insights/SKILL.md) Checked 2026-10-14 https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-lgtm/profilecli-insights/SKILL.md Supports: summary, whySelected, bestFor, limitations, install, access, review
- [Publisher repository and installation guidance ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/README.md) Checked 2026-10-14 https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/README.md Supports: install
- [Apache-2.0 licence ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/LICENSE) Checked 2026-10-14 https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/LICENSE Supports: license
- [Pinned continuation review C2-W24 ↗](https://raw.githubusercontent.com/grafana/skills/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-lgtm/profilecli-insights/SKILL.md) Checked 2026-10-15 https://raw.githubusercontent.com/grafana/skills/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-lgtm/profilecli-insights/SKILL.md Supports: review.findings, bestFor, upstreamDescription

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Grafana App Admission Control ↗ Implement validators and mutators for Grafana app resources before persistence.](/skills/grafana-admission-control/)[### Grafana App Reconciler Logic ↗ Implement scoped resource reconciliation and status updates with explicit event and finalizer behavior.](/skills/grafana-reconciler-logic/)[### Grafana CUE Kind Definitions ↗ Define versioned resource schemas and generate matching app types from CUE.](/skills/grafana-cue-kind-definition/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Choose a toolkit](/tools/)
- [Inspect execution hosts](/agents/)
- [Check tool access](/mcp-servers/)
- [Check project dependencies](/check-repo/)
