Skip to content
For LLMsView as Markdown·

Grafana

Manage dashboards, data sources, and alerts with the Grafana HTTP API.

DetailValue
CategoryMonitoring
Base URLhttps://grafana.example.com/api
AuthenticationBearer Token
Endpoints8
Connector keygrafana

Using Grafana in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Grafana from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
POST /dashboards/dbCreate or update dashboard
GET /dashboards/uid/{uid}Get dashboard by UID
GET /searchSearch dashboards
GET /datasourcesList data sources
POST /datasourcesCreate a data source
GET /alertsList alerts
GET /foldersList folders
GET /orgGet current org

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /dashboards/db

Create or update dashboard

DetailValue
Operation IDmonitoring.createOrUpdateDashboard
MethodPOST
Path/dashboards/db

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Grafana connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.createOrUpdateDashboard.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Grafana API reference.

GET /dashboards/uid/{uid}

Get dashboard by UID

DetailValue
Operation IDmonitoring.getDashboardByUid
MethodGET
Path/dashboards/uid/{uid}

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Grafana connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.getDashboardByUid.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Grafana API reference.

Search dashboards

DetailValue
Operation IDmonitoring.searchDashboards
MethodGET
Path/search

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Grafana connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.searchDashboards.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Grafana API reference.

GET /datasources

List data sources

DetailValue
Operation IDmonitoring.listDataSources
MethodGET
Path/datasources

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Grafana connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.listDataSources.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Grafana API reference.

POST /datasources

Create a data source

DetailValue
Operation IDmonitoring.createDataSource
MethodPOST
Path/datasources

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Grafana connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.createDataSource.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Grafana API reference.

GET /alerts

List alerts

DetailValue
Operation IDmonitoring.listAlerts
MethodGET
Path/alerts

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Grafana connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.listAlerts.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Grafana API reference.

GET /folders

List folders

DetailValue
Operation IDmonitoring.listFolders
MethodGET
Path/folders

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Grafana connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.listFolders.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Grafana API reference.

GET /org

Get current org

DetailValue
Operation IDmonitoring.getCurrentOrg
MethodGET
Path/org

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Grafana connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.getCurrentOrg.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Grafana API reference.