Coralogix provides a secure hosted Grafana API for creating, editing, exporting, importing, querying, and other Grafana API operations. Through Grafana APIs, you can manage your hosted Grafana dashboards.
To use the Grafana API to query your dashboard, first locate your:
The Alerts, Rules and Tags API key should be added as Coralogix token with each HTTP request. Your Coralogix Domain will be used to construct the Grafana API endpoint specific to your account.
The API request should contain the following:
curl --location --request GET 'https://ng-api-http.<DOMAIN>/grafana/api/dashboards/home' \
--header 'Content-type: application/json' \
--header 'Authorization: Bearer <Alerts, Rules and Tags API Key>' \
curl --location --request GET 'https://ng-api-http.<DOMAIN>/grafana/api/search' \
--header 'Content-type: application/json' \
--header 'Authorization: Bearer <Alerts, Rules and Tags API Key>' \
curl --location --request GET 'https://ng-api-http.<DOMAIN>/grafana/api/dashboards/uid/<UID>' \
--header 'Content-type: application/json' \
--header 'Authorization: Bearer <Alerts, Rules and Tags API Key>' \
curl --location 'https://ng-api-http.<domain>/grafana/api/dashboards/db' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <Alerts, Rules and Tags API Key>' \
--data '<Dashboard JSON>'
curl --location --request POST 'https://ng-api-http.coralogix.com/grafana/api/dashboards/db' \
--header 'Content-type: application/json' \
--header 'Authorization: Bearer <Alerts, Rules and Tags API Key>' \
--data-binary "@path/to/file"
Need help?
Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.
Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].