-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOC] Add traces to profile content #2980
Merged
knylander-grafana
merged 12 commits into
grafana:main
from
knylander-grafana:2662-add-traces-to-profile-content
Feb 8, 2024
Merged
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b5c5ae1
Add traces to profile content
knylander-grafana 499105e
Rename folder to view and analyze
knylander-grafana 88c498b
Fix links
knylander-grafana 85ddd76
Update docs/sources/view-and-analyze-profile-data/_index.md
knylander-grafana a9b4707
Apply suggestions from code review
knylander-grafana 5a5610e
Fix links
knylander-grafana 345131f
Apply suggestions from code review
knylander-grafana d6cd7f0
Update docs/sources/view-and-analyze-profile-data/_index.md
knylander-grafana 69fcb84
Add link to PR 2982 content
knylander-grafana 0735380
Apply suggestions from code review
knylander-grafana be1e608
Merge branch 'main' into 2662-add-traces-to-profile-content
knylander-grafana 9cb7ef3
Merge branch 'main' into 2662-add-traces-to-profile-content
knylander-grafana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: View and analyze profile data | ||
menuTitle: View and analyze profile data | ||
description: How to use Pyroscope to view and analyze profile data. | ||
aliases: | ||
- ../ingest-and-analyze-profile-data/ | ||
weight: 50 | ||
keywords: | ||
- pyroscope | ||
- UI | ||
- performance analysis | ||
- flamegraphs | ||
- CLI | ||
--- | ||
|
||
# View and analyze profile data | ||
|
||
Profiling data can be presented in a variety of formats presents such as: | ||
- **Flamegraphs**: Visualize call relationships and identify hotspots. | ||
- **Tables**: View detailed statistics for specific functions or time periods. | ||
- **Charts and graphs**: Analyze trends and compare performance across different metrics. | ||
|
||
## Viewing profiles | ||
|
||
Pyroscope offers both a Command Line Interface (CLI) and an Application Programming Interface (API) to interact with and retrieve profiling data. These tools provide flexibility in how you access and manage your profiling information. | ||
|
||
You can export profiling data from Pyroscope in various formats: | ||
- **JSON**: JSON object easy to integrate with other tools and scripts | ||
knylander-grafana marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- **dot**: text containing a DOT representation of the profile | ||
knylander-grafana marked this conversation as resolved.
Show resolved
Hide resolved
knylander-grafana marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Integrating Pyroscope with Grafana is a common and recommended approach for visualizing profiling data. Grafana, being a powerful tool for data visualization, can effectively display profiling data in an accessible and insightful manner. | ||
|
||
Options for Visualizing Data in Grafana: | ||
- **Pyroscope App Plugin**: This plugin is specifically designed for Pyroscope data. It allows for easy browsing, analysis, and comparison of multiple profiles across different labels or time periods. This is particularly useful for a comprehensive overview of your application's performance. | ||
- **Explore Tab**: In Grafana, the Explore tab is suited for making targeted queries on your profiling data. This is useful for in-depth analysis of specific aspects of your application's performance. | ||
- **Dashboard**: Grafana dashboards are excellent for integrating profiling data with other metrics. You can display Pyroscope data alongside other dashboard items, creating a unified view of your application’s overall health and performance. | ||
|
||
For more information on using profiles in Grafana, refer to [Pyroscope and profiles in Grafana]({{< relref "../introduction/pyroscope-in-grafana#pyroscope-and-profiling-in-grafana" >}}). | ||
|
||
The Pyroscope app plugin works for Grafana Cloud. | ||
|
||
For more information on configuring these data sources, refer to the Pyroscope data source documentation in [Grafana Cloud](/docs/grafana-cloud/connect-externally-hosted/data-sources/grafana-pyroscope/) and [Grafana](/docs/grafana/latest/datasources/grafana-pyroscope/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
docs/sources/view-and-analyze-profile-data/profile-tracing/traces-to-profiles.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Traces to profiles | ||
menuTitle: Traces to profiles | ||
description: Learning about traces to profiles integration in Grafana and Grafana Cloud. | ||
weight: 150 | ||
keywords: | ||
- pyroscope | ||
- continuous profiling | ||
- tracing | ||
--- | ||
|
||
# Traces to profiles | ||
|
||
{{< admonition type="note" >}} | ||
|
||
Your application must be instrumented for profiles and traces. For more information, refer to [Span profiles for Traces to profiles]({{< relref "../../configure-client/go-span-profiles" >}}). | ||
Check failure on line 16 in docs/sources/view-and-analyze-profile-data/profile-tracing/traces-to-profiles.md GitHub Actions / doc-validator
|
||
|
||
{{< /admonition >}} | ||
|
||
[//]: # 'Shared content for Trace to profiles in the Tempo data source' | ||
|
||
{{< docs/shared source="grafana" lookup="datasources/tempo-traces-to-profiles.md" version="<GRAFANA VERSION>" >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The most popular is pprof and we support that, to be precised it gzip compressed pprof
foo.pprof.gz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added pprof and removed dot.