grafana / explore-profiles

Explore Profiles is a native Grafana application designed to integrate seamlessly with Pyroscope, the open-source continuous profiling platform, providing a smooth, query-less experience for browsing and analyzing profiling data.
GNU Affero General Public License v3.0
17 stars 1 forks source link

[bug] Pyroscope data-source not found after the plugin is installed #84

Closed hazra-mms closed 6 days ago

hazra-mms commented 1 month ago

Bug description

We have installed the plugin in our grafana infrastructure, we are having datasource for pyroscope already enabled but the plugin explore view doesn't find the datasource. Hence we can not use this.

Steps to reproduce

Install the plugin following https://grafana.com/grafana/plugins/grafana-pyroscope-app/?tab=installation ( we installed manually and through plugin section in the helm chart). Navigate to Profiles --> Explore Profiles

Actual behaviour

Error TypeError: Failed to fetch image

Error in developer console in chrome image

Expected behaviour

I expect the UI would load the profile correctly as the pyrooscope data source is configured already.

simonswine commented 1 month ago

Do you mind sharing ...

image

Thanks that should help us find the problem 🙂

hazra-mms commented 1 month ago

Thanks for your reply, please find the details. Our pyroscope setup is working and we can get the details from the explore view also. It's just issues with the plugin that we face. image

We are running Grafana version 10.4.3 which is configured using the helm chart. image

In case you need any further information please let me know.

grafakus commented 1 month ago

Hi @hazra-mms,

Thank you for the info, may I also ask you to share:

Thanks, we're still trying to figure out where the problem could be.

hazra-mms commented 1 month ago

Hi @grafakus ,

Sorry for the delay, please find the information below.

https:///grafana/a/grafana-pyroscope-app/profiles-explorer?searchText=&layout=grid&hideNoData=off&explorationType=all&var-serviceName=&var-profileMetricId=process_cpu:cpu:nanoseconds:cpu:nanoseconds&var-dataSource=pyroscope

url for failing request contains: http://localhost/grafana/api/datasources/proxy/uid/pyroscope/querier.v1.QuerierService/Series

Not sure why localhost is used here.

ifrost commented 3 weeks ago

Thanks @hazra-mms. Would you mind sharing part of your settings.ini file in [server] section? The localhost is taken from root_url config which by default is:

root_url = %(protocol)s://%(domain)s:%(http_port)s/

By setting domain/protocol to:

[server]
http_port = 80
domain = grafana

or

[server]
http_port = 80
root_url = http://grafana/

I was able to load the plugin from https://grafana/...:

Image

Also, do you have serve_from_sub_path set in your settings?

ifrost commented 6 days ago

We've closed this issue since it needs more information and hasn't had any activity recently. Feel free to re-open it after you you add more information.