Grafana integration
CloudQuant Data Liberator exposes a curated, read-only slice of its internal Prometheus stack at a Bearer-authenticated endpoint so you can wire your own Grafana (or any Prometheus-API-compatible client) to the same metrics that power the in-product System Monitoring view. This integration is intended for ops teams, on-call rotations, and infrastructure dashboards that need to live alongside metrics from systems outside CloudQuant.At a glance
Prerequisites
- A user with super-admin privileges on your Liberator instance (token management is a super-admin operation).
- Network reachability from your Grafana host to your Liberator hostname over HTTPS.
- Grafana 9.x or newer (any version that supports custom HTTP headers on the Prometheus datasource).
Step 1 — Issue a Bearer token
- Sign in to the Liberator UI as a super-admin.
- Open System Monitoring from the top navigation.
- Click the Grafana Integration action in the upper-right of the page.
- Click Generate token. The new token is shown exactly once, so copy it immediately.
cqm_ + 48 hex characters. Every token issued through this dialog is logged with the issuing user and timestamp; tokens can be listed and revoked from the same dialog.
Step 2 — Configure the Grafana datasource
Through the Grafana UI
- Connections → Data sources → Add data source → Prometheus.
-
Set the fields below:
-
Under Custom HTTP Headers, click + Add header and set:
- Header =
Authorization - Value =
Bearer cqm_<your-token>
- Header =
- Click Save & test. You should see “Successfully queried the Prometheus API.”
Through provisioning (recommended for production)
For reproducible setups, drop this file at/etc/grafana/provisioning/datasources/cloudquant.yaml:
SIGHUP) to pick up the file. The token lives in secureJsonData, which Grafana persists encrypted at rest.
Step 3 — Run a query
Once the datasource is healthy, you can browse it in Explore or build dashboards against it. A few queries to verify end-to-end connectivity:What’s exposed
The Bearer endpoint forwards to the same Prometheus server that powers the in-product System Monitoring view, so anything you see there is also queryable here. Notable metric families:
For a complete metric inventory in your environment, query
/api/v1/label/__name__/values once you’ve connected.
Rotating a token
- Open the Grafana Integration dialog as in Step 1.
- Issue a new token for the same logical consumer.
- Update the new token in Grafana (UI: edit the datasource → swap the
Authorizationheader value; provisioning: replacehttpHeaderValue1and restart). - Wait until your Grafana datasource health check passes with the new token.
- Revoke the old token from the same dialog.
Limitations
- Read-only. Prometheus admin endpoints (
/api/v1/admin/tsdb/*) and the remote-write receiver are not exposed. Even tokened callers cannot mutate the TSDB through this endpoint. - One Prometheus. The endpoint serves the Liberator cluster’s primary Prometheus only. Federated views across multiple Liberator clusters require Prometheus-side federation on the consumer side; use
/metrics-api-bearer/federatewith appropriatematch[]parameters. - CORS. Browser-side direct calls are not supported (the gateway only allows server-side calls). Grafana proxies through its backend, so this restriction does not affect dashboard use.

