Skip to main content
Monitoring & Collection/Grafana Integration
GETGrafanaSince 1.0SynchronousAuth Required

GetGrafanaDatasourceConfig

Retrieve the full Grafana datasource configuration including type, URL, and default flag

Execution Availability

Try It Out

Submit a mock request using the current auth context and example-driven inputs.

Path Parameters

Request Inputs

Path Parameters

  • idStringRequired

    Unique identifier of the datasource to get configuration for

Responses

200 OK

On success, this API returns the following response structure.

  • nameString

    Name of the datasource in Grafana

    Example: Prometheus

  • typeString

    Datasource type (e.g. prometheus, loki, influxdb)

    Example: prometheus

  • urlString

    URL of the backing data source

    Example: http://prometheus:9090

  • accessString

    Access mode for this datasource (proxy or direct)

    Example: proxy

  • isDefaultBoolean

    Whether this is the default datasource in the Grafana organization

    Example: true

Endpoint

GET/api/v1/monitoring/grafana/datasources/{id}/config

/api/v1/monitoring/grafana/datasources/{id}/config

Operation ID

GetGrafanaDatasourceConfig

Permalink

Request Example

curl -X GET '{host}/api/v1/monitoring/grafana/datasources/{id}/config' -H 'Authorization: Bearer {token}'

Response Example

200
{
  "name": "Prometheus",
  "type": "prometheus",
  "url": "http://prometheus:9090",
  "access": "proxy",
  "isDefault": true
}

Change History

This API has no change history records yet.

View all change history