Convert your existing Grafana dashboards into New Relic native dashboards using our translation REST API. Whether you're looking to consolidate your observability tools, migrate your entire monitoring setup to New Relic, or simply test out New Relic dashboards alongside your existing Grafana setup, this API makes it easier to get started.
This API uses New Relic PromQL translation logic to translate your queries. To see a list of supported PromQL features and functions, see PromQL features support guide.
Prerequisites
Before using this API, you'll need:
- A New Relic user API key
- Your New Relic account ID
Make a request to the API endpoints
To translate a Grafana dashboard to a New Relic dashboard, send a POST request to the appropriate endpoint for your region with the dashboard you want to translate in the body of the request.
- US:
https://prometheus-api.newrelic.com/api/v1/translate/dashboard/grafana - EU:
https://prometheus-api.eu.newrelic.com/api/v1/translate/dashboard/grafana - JP:
https://prometheus-api.jp.newrelic.com/api/v1/translate/dashboard/grafana
API reference
Authentication
All API calls require a user API key. Include this key in the api-key header of your request.
Request body
The request body must be a JSON object with the following format:
{ "accountId": int[optional], "dashboard": object[required]}Where dashboard is the Grafana dashboard JSON object you want to translate. The accountId field is optional — if omitted, the translated dashboard will query data from the account of the user making the request.
Response format
The API returns a JSON object containing the translated New Relic dashboard:
{ "dashboard": { "name": "Translated Dashboard", "permissions": "PUBLIC_READ_WRITE", "pages": [...] }}Examples
Troubleshoot translation errors
When the translator encounters issues that prevent complete translation of a widget or query, it creates "Action Items" — special Markdown widgets that explain what went wrong and suggest fixes.

Grafana and New Relic widget types
The following is a list of Grafana widget types that we support and their corresponding New Relic widget types.