Troubleshoot Pyroscope data source issues
This document provides solutions to common issues you may encounter when configuring or using the Pyroscope data source. For configuration instructions, refer to Configure the Grafana Pyroscope data source.
Connection and configuration errors
These errors occur when setting up the data source or when connecting to the Pyroscope backend.
“Data source is not working” or connection fails
Symptoms:
- Save & test fails with a connection error
- Error message indicates the Pyroscope backend is unreachable
- Timeout errors when testing the data source
Possible causes and solutions:
URL format issues
Symptoms:
- Data source test fails immediately
- Error indicates invalid URL
Solutions:
- Ensure the URL includes the protocol (
http://orhttps://). - Remove any trailing slashes from the URL.
- For Grafana Cloud Profiles, find the correct URL under Manage your stack in your organization settings.
- Verify the port number is correct for your deployment.
Authentication errors
These errors occur when the data source cannot authenticate with the Pyroscope backend.
“Authentication failed” or “Unauthorized”
Symptoms:
- Save & test fails with authentication errors
- Queries return 401 or 403 status codes
- Profile types don’t load
Possible causes and solutions:
Basic authentication not working
Symptoms:
- Basic auth credentials are rejected
- Works in browser but fails in Grafana
Solutions:
- Verify Basic authentication is enabled in the data source settings.
- Ensure the username and password are entered correctly (no extra spaces).
- Check that the Pyroscope backend is configured to accept Basic authentication.
- For Grafana Cloud Profiles, use the API key authentication method instead.
API key authentication issues
Symptoms:
- API key is rejected
- Error indicates invalid token
Solutions:
- Verify you’re using the correct API key format for your Pyroscope deployment.
- For Grafana Cloud, generate a new API key from the Grafana Cloud portal.
- Ensure the API key has the required permissions to read profiling data.
- Check if the API key has expired and generate a new one if necessary.
Query errors
These errors occur when executing queries against the Pyroscope data source.
“No data” or empty results
Symptoms:
- Query executes without error but returns no data
- Flame graph shows “No data” message
- Metrics graph is empty
Possible causes and solutions:
“Profile type not found” or empty profile type selector
Symptoms:
- Profile type drop-down is empty
- Error indicates profile type doesn’t exist
Solutions:
- Verify the Pyroscope backend is receiving profiles from your applications.
- Check that the time range includes periods when profiles were collected.
- Test the data source connection to ensure it’s working correctly.
- For new deployments, wait a few minutes for initial profile data to be ingested.
Label names or values not loading
Symptoms:
- Label selector doesn’t populate
- No labels appear in the drop-down menus
- Autocomplete doesn’t work
Solutions:
- Verify the data source connection is working by testing it in the settings.
- Select a profile type first, as labels are loaded based on the selected profile type.
- Expand the time range to ensure label data is available.
- Check the browser console for JavaScript errors that might indicate issues.
Query syntax errors
Symptoms:
- Error message indicates invalid query syntax
- Label selector is rejected
Solutions:
- Use the correct label selector syntax. Pyroscope uses a syntax similar to Prometheus.
- Enclose label values in double quotes:
{service_name="my-service"}. - Use valid operators:
=,!=,=~,!~. - Escape special characters in regular expression patterns when using
=~or!~.
Example valid queries:
{service_name="my-app"}
{service_name="my-app", env="production"}
{service_name=~"my-app.*"}Flame graph issues
These errors are specific to the flame graph visualization.
Flame graph not rendering
Symptoms:
- Query returns data but flame graph doesn’t display
- Flame graph area is blank
- Loading indicator never completes
Solutions:
- Check that the Query Type is set to include profile data (not metrics only).
- Verify the response contains valid profile data using the Query Inspector.
- Try refreshing the page or re-running the query.
- For large profiles, increase the browser memory limits or reduce the time range.
Flame graph shows aggregated data without detail
Symptoms:
- Flame graph lacks expected granularity
- Function names are missing or truncated
- Stack traces appear incomplete
Solutions:
- Zoom in to a smaller time range to get more detailed profiles.
- Verify your application is instrumented to capture full stack traces.
- Check if the profiling agent is configured with sufficient sampling rate.
- For compiled languages, ensure debug symbols are available.
Unable to interact with flame graph
Symptoms:
- Clicking on flame graph elements doesn’t work
- Tooltip doesn’t appear
- Zoom and filter controls are unresponsive
Solutions:
- Verify JavaScript is enabled in your browser.
- Check the browser console for JavaScript errors.
- Try using a different browser or clearing the browser cache.
- Update Grafana to the latest version.
Profiles Drilldown issues
These errors are specific to the Profiles Drilldown application.
Profiles Drilldown not available
Symptoms:
- Profiles Drilldown option doesn’t appear in the menu
- Error when trying to access Profiles Drilldown
Solutions:
- Verify the Profiles Drilldown plugin is installed and enabled.
- For self-managed Grafana, install the plugin from the Grafana plugin catalog.
- Restart Grafana after installing the plugin.
- Check that you have the required permissions to access the application.
Services or profiles not appearing in Profiles Drilldown
Symptoms:
- Profiles Drilldown shows no services
- Expected applications are missing
Solutions:
- Verify the Pyroscope data source is configured and working.
- Check that profiles are being ingested with the correct
service_namelabel. - Ensure the time range includes periods when profiles were collected.
- For microservices mode, verify the data source URL points to the correct gateway.
Traces to profiles issues
These errors occur when linking tracing and profiling data.
Span profiles not appearing
Symptoms:
- Trace spans don’t show profile links
- “Profiles for this span” option is missing
Solutions:
- Verify the Tempo data source is configured with Traces to profiles enabled.
- Ensure your application is instrumented to emit span profiles.
- Check that the Pyroscope data source is selected in the Tempo data source configuration.
- Verify profile data exists for the time range of the trace.
For more information, refer to Configure Traces to profiles.
Profile doesn’t match the trace span
Symptoms:
- Profile data doesn’t correlate with the trace
- Wrong time range in profile
Solutions:
- Verify the trace and profile timestamps are synchronized.
- Check that the application’s clock is accurate.
- Ensure the
span_idandtrace_idlabels are correctly propagated to profiles.
Performance issues
These issues relate to slow queries or high resource usage.
Slow queries or timeouts
Symptoms:
- Queries take a long time to complete
- Requests time out before returning results
- Dashboard panels fail to load
Solutions:
- Reduce the time range to decrease the amount of data processed.
- Add label filters to narrow the query scope.
- Increase the Timeout setting in the data source’s Additional settings.
- Adjust the Minimum step setting to reduce the number of data points.
- For large deployments, ensure the Pyroscope backend has sufficient resources.
High memory usage in browser
Symptoms:
- Browser becomes unresponsive when viewing profiles
- Memory warnings appear
- Page crashes when loading flame graphs
Solutions:
- Reduce the time range to load smaller profiles.
- Close unnecessary browser tabs to free up memory.
- Use a smaller aggregation window for very large profiles.
- Consider using Profiles Drilldown for large-scale analysis.
Network and connectivity errors
These errors indicate problems with network connectivity between Grafana and Pyroscope.
“Connection refused” or timeout errors
Symptoms:
- Data source test fails with network errors
- Queries fail with connection errors
- Intermittent connectivity issues
Solutions:
- Verify network connectivity from the Grafana server to the Pyroscope endpoint.
- Check firewall rules allow outbound connections on the required port (default: 4040).
- For Kubernetes deployments, verify the service is exposed correctly.
- For Grafana Cloud connecting to private resources, configure Private data source connect.
- Check if a proxy is required and configure it in the data source settings.
SSL/TLS certificate errors
Symptoms:
- Certificate validation failures
- SSL handshake errors
- “Certificate not trusted” messages
Solutions:
- Ensure the system time is correct on the Grafana server.
- Verify the certificate is valid and not expired.
- For self-signed certificates, enable Skip TLS Verify in the data source settings (not recommended for production).
- Add the CA certificate to the Grafana server’s trusted certificates.
- Check that intermediate certificates are included in the certificate chain.
Enable debug logging
To capture detailed error information for troubleshooting:
Set the Grafana log level to
debugin the configuration file:[log] level = debugReview logs in
/var/log/grafana/grafana.log(or your configured log location).Look for Pyroscope-specific entries that include request and response details.
Reset the log level to
infoafter troubleshooting to avoid excessive log volume.
Get additional help
If you’ve tried the solutions in this guide and still encounter issues:
- Check the Grafana community forums for similar issues.
- Review the Pyroscope GitHub issues for known bugs.
- Refer to Pyroscope documentation for additional guidance.
- Contact Grafana Support if you’re an Enterprise, Cloud Pro, or Cloud Contracted user.
- When reporting issues, include:
- Grafana version
- Pyroscope version (if self-managed)
- Error messages (redact sensitive information)
- Steps to reproduce
- Data source configuration (redact credentials)


