Skip to content
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] Restructure Pyroscope documentation and share content #3798

Merged

Conversation

knylander-grafana
Copy link
Contributor

@knylander-grafana knylander-grafana commented Dec 20, 2024

Restructure Pyroscope documentation to share content to other profiles-related content.

  • Changes into content to shared files
  • Updates the Pyroscope UI content to include Explore Profiles
  • Restructures the Configure the server section - moves the API docs out to a new reference section, moves the two storage docs into a storage directory

These changes will go live with the next Pyroscope release and should not be backported.

Notes for reviewer

Part of https://github.com/grafana/pyroscope-squad/issues/223 (reference the mind map linked in the issue for the file changes)

You can check out the PR using gh pr checkout 3798 in your local tempo repo.

Changes to check:

  • Intro section now has shared content. Please verify that the correct content shows in each page.
  • Check aliases in the front matter for moved pages
  • Check the page weights and order using the mind map as a guide.

Blocks these PRs:

@knylander-grafana knylander-grafana added the type/docs Improvements for doc docs. Used by Docs team for project management label Dec 20, 2024
@knylander-grafana knylander-grafana self-assigned this Dec 20, 2024
@knylander-grafana knylander-grafana requested review from a team as code owners December 20, 2024 07:32
docs/sources/configure-client/grafana-alloy/_index.md Outdated Show resolved Hide resolved
docs/sources/configure-server/about-configurations.md Outdated Show resolved Hide resolved
docs/sources/configure-server/about-ip-address-logging.md Outdated Show resolved Hide resolved
docs/sources/reference-server-api/index.md Outdated Show resolved Hide resolved

<!-- vale Grafana.Spelling = NO -->

[Brendan Gregg](https://www.brendangregg.com/flamegraphs.html), the creator of flame graphs, was inspired by the inability to view, read, and understand stack traces using the regular profilers to debug performance issues.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hah, this is so cool 😎

docs/sources/shared/intro/flame-graphs.md Outdated Show resolved Hide resolved
docs/sources/shared/intro/flame-graphs.md Outdated Show resolved Hide resolved
docs/sources/shared/intro/flame-graphs.md Show resolved Hide resolved
Copy link
Contributor

@aleks-p aleks-p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I added a few minor suggestions for new and existing content.


Continuous profiling is a systematic method of collecting and analyzing performance data from production systems.
[//]: # 'Shared content for the when to use continuous profiling.'
[//]: # 'This content is located in /pyroscope/docs/sources/shared/intro/continuous-profiling.md'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these comments a common practice or generated? Otherwise, perhaps it can be omitted as the next line is descriptive enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a best practice when using the include files to make sure people understand where content comes from. Even if it's obvious in the include line itself, not everyone reads it.
The comments also provide a visual clue for where content is shared in a file. The comments don't appear in the final published HTML (unlike the <!-- comments).

docs/sources/introduction/pyroscope-in-grafana.md Outdated Show resolved Hide resolved
docs/sources/introduction/pyroscope-in-grafana.md Outdated Show resolved Hide resolved
docs/sources/reference-server-api/index.md Outdated Show resolved Hide resolved
docs/sources/shared/intro/continuous-profiling.md Outdated Show resolved Hide resolved
Co-authored-by: Aleksandar Petrov <[email protected]>
@knylander-grafana knylander-grafana merged commit f9b116c into grafana:main Jan 7, 2025
18 checks passed
@knylander-grafana knylander-grafana added the backport release/v1.11 This label will backport a merged PR to the release/v1.11 branch label Jan 7, 2025
github-actions bot pushed a commit that referenced this pull request Jan 7, 2025
* Restructure Pyroscope documentation and share content

* Fix typo

* Fix heading match for profile types

* Restructure for configure server

* Apply suggestions from code review

Co-authored-by: Taylor C <[email protected]>

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Aleksandar Petrov <[email protected]>

* Apply suggestions from code review

Co-authored-by: Aleksandar Petrov <[email protected]>

---------

Co-authored-by: Taylor C <[email protected]>
Co-authored-by: Aleksandar Petrov <[email protected]>
(cherry picked from commit f9b116c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release/v1.11 This label will backport a merged PR to the release/v1.11 branch type/docs Improvements for doc docs. Used by Docs team for project management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants