-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Flame Graph: Analyze with Grafana Assistant #108684
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
Conversation
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.
Feel free to use 0.0.11 of @grafana/assistant
|
|
|
|
Error building instance: Contact #proj-ephemeral-hg-instances if it is not a compile error. Logs |
|
/deploy-to-hg |
|
|
|
💻 Deploy preview deleted. |
|
/deploy-to-hg |
|
|
|
/deploy-to-hg |
|
|
Error building instance: Contact #proj-ephemeral-hg-instances if it is not a compile error. Logs |
|
What's going on with the deploys @ifrost? Seems like half the time it fails and the other half it only lasts for less than a day or something? |
|
/deploy-to-hg |
|
|
Error building instance: Contact #proj-ephemeral-hg-instances if it is not a compile error. Logs |
|
/deploy-to-hg |
|
|
Seems like a mix of not being synced with main and some issue in dev environment. The ephemeral is up and running now. I needed it double check flame graph load fine. It incorrectly shows the button for non-pyroscope queries so I need to double check it 🤔 |
* Bare-bones mocked integration * Create correct context based on the query * Add data source name * Do not bundle grafana/assistant with flame graph * Rename component * Add tests * Mock grafana/assistant * Update feature toggle and allow hiding the button * Update deps * Update types * Update yarn.lock * Fix typo in feature toggle description * Enable grafanaAssistantInProfilesDrilldown by default * Enable grafanaAssistantInProfilesDrilldown by default * Show Analyze Flame Graph button only if there's context for the assistant
* Bare-bones mocked integration * Create correct context based on the query * Add data source name * Do not bundle grafana/assistant with flame graph * Rename component * Add tests * Mock grafana/assistant * Update feature toggle and allow hiding the button * Update deps * Update types * Update yarn.lock * Fix typo in feature toggle description * Enable grafanaAssistantInProfilesDrilldown by default * Enable grafanaAssistantInProfilesDrilldown by default * Show Analyze Flame Graph button only if there's context for the assistant

Fixes: #108773
Integrates Flame Graph package with Grafana Assistant.
Important notes:
grafana/assistantbecomes a peerDependency, meaning anyone consuming new version ofgrafana/flamegraphwould need to install it (we can make it optional peerDependency and load it dynamically, but not sure if it's worth it)grafana/flamegraph(Profiles Drilldown don't use core Flamegraph but includes its own) + feat(AI): Integrate with Grafana Assistant profiles-drilldown#558getObservablePluginLinkswhich fails if Grafana is not loadedChatItemContext(see also https://github.com/grafana/grafana-assistant-app/pull/1035)Here's how it works:
Screen.Recording.2025-07-25.at.14.15.46.mov