Monitoring & Collection/Grafana Integration
POSTGrafanaSince 1.0SynchronousAuth Required
RegisterGrafanaDatasource
Register a new Grafana datasource linked to a tenant's Grafana organization
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
tenantIdStringRequiredUUID of the tenant registering the datasource
Example: tenant-001-xyz
nameStringRequiredDisplay name for the new datasource
Example: Production Prometheus
grafanaUrlStringRequiredURL of the Grafana instance to register against
Example: http://grafana.example.com
orgIdIntegerRequiredGrafana organization ID
Example: 1
apiKeyStringRequiredAPI key for authenticating with Grafana
Example: glsa_xxxxxxxxxxxx
Responses
Endpoint
POST/api/v1/monitoring/grafana/datasources
/api/v1/monitoring/grafana/datasources
Request Example
curl -X POST '{host}/api/v1/monitoring/grafana/datasources' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"tenantId":"tenant-001-xyz","name":"Production Prometheus","grafanaUrl":"http://grafana.example.com","orgId":1,"apiKey":"glsa_xxxxxxxxxxxx"}'
Response Example
200{
"id": "ds-001-abc",
"name": "Production Prometheus",
"grafanaUrl": "http://grafana.example.com",
"orgId": 1,
"apiKey": "glsa_xxxxxxxxxxxx",
"tenantId": "tenant-001-xyz",
"createdAt": "example"
}Change History
This API has no change history records yet.
