Parca Datasource plugin for Grafana
The Parca Datasource plugin for Grafana allows you to connect to a Parca server and query for profiles from the Grafana dashboard.
Usage
- Install the Parca datasource plugin by following the instructions in this article.
- In the Grafana UI, navigate to the
Configuration
->Data Sources
page. - Click on the
Add data source
button. - Select the
Parca
datasource. - Enter the API URL of the Parca server in the
API Endpoint
field. For example,http://localhost:7070/api
. Note: Please make sure cors configuration of the Parca server allow requests from your Grafana Dashboard origin. If you Grafana dashboard is running athttp://localhost:3000
, then ensure that the Parca server is started with either--cors-allowed-origins='http://localhost:3000'
or--cors-allowed-origins='*'
flag. Please refer the docs. - Click on the
Save & Test
button. If the connection is successful, you should see a greenData source is working
message. - Now you can use the Parca datasource in your panels.
Screenshot
Allow Cors Requests
The Parca server by default only allows requests from the same origin. To allow requests from other origins, you can set the --cors-allowed-origins
flag to a comma separated list of origins. For example, to allow requests from http://localhost:3000
, you can run the Parca server with the following flag:
--cors-allowed-origins='http://localhost:3000'
or --cors-allowed-origins='*'
(to allow requests from all origins).