Skip to main content
Connect your Prometheus-compatible monitoring backend to enable CloudThinker agents to run PromQL queries, discover metrics and labels, inspect scrape-target health, and correlate active alerts — all read-only.
The connector works with any backend that speaks the standard Prometheus HTTP API: self-hosted Prometheus, Thanos, VictoriaMetrics, and Grafana Cloud. Authentication supports None, Bearer Token, and Basic Auth.

Supported platforms

PlatformSupportTypical auth
PrometheusSelf-hosted, all recent releasesNone or Bearer
ThanosQuerier behind an auth proxyNone, Bearer, or Basic
VictoriaMetricsSingle-node and clusterNone or Basic
Grafana CloudPrometheus / Mimir endpointBasic
Against managed, Mimir-backed endpoints (Grafana Cloud), the /api/v1/targets, /rules, and /alerts paths are not exposed and return 404. This is expected — the query API (instant queries, range queries, labels, and metadata) works normally.

Prerequisites

  • A Prometheus-compatible endpoint reachable from CloudThinker over HTTPS — self-hosted Prometheus, Thanos, VictoriaMetrics, or Grafana Cloud.
  • Credentials if the endpoint requires authentication: a bearer token (Bearer Token mode) or a username and password (Basic Auth mode).
  • For Grafana Cloud, the numeric instance ID and an access-policy token with the metrics:read scope.

Choosing an auth mode

Pick the mode that matches how your endpoint is exposed:
ModeWhen to useFields
NoneOpen or network-restricted endpoint (self-hosted Prometheus inside a private network)URL only
Bearer TokenEndpoint behind a proxy or gateway that expects Authorization: Bearer <token>URL + token
Basic AuthGrafana Cloud, Thanos behind an auth proxy, or VictoriaMetrics with username/passwordURL + username + password
For Grafana Cloud, the username is your numeric instance ID and the password is an access-policy token with metrics read scope.

Setup

1

Find your Prometheus URL

Identify the base URL of your Prometheus HTTP API, e.g. https://prometheus.your-domain.com or your Grafana Cloud Prometheus query endpoint. CloudThinker appends the standard /api/v1/... paths.
2

Prepare credentials (if required)

  • None — nothing to prepare; the endpoint is reachable without auth.
  • Bearer Token — obtain the bearer token your proxy or gateway expects.
  • Basic Auth — obtain the username and password (for Grafana Cloud, the numeric instance ID and an access-policy token).
3

Add connection in CloudThinker

Navigate to Connections → Prometheus and enter:
  • PROMETHEUS_URL: your endpoint, e.g. https://prometheus.your-domain.com
  • PROMETHEUS_AUTH_TYPE: select None, Bearer Token, or Basic Auth
The credential fields appear based on your selection:
  • Bearer TokenPROMETHEUS_TOKEN
  • Basic AuthPROMETHEUS_USERNAME and PROMETHEUS_PASSWORD
Click Connect. CloudThinker verifies the endpoint and shows a Connected status.

Connection details

FieldDescriptionExample
PROMETHEUS_URLBase URL of the Prometheus HTTP APIhttps://prometheus.your-domain.com
PROMETHEUS_AUTH_TYPEAuthentication mode: none, bearer, or basicbasic
PROMETHEUS_TOKENBearer token (Bearer Token mode only)eyJhbGci...
PROMETHEUS_USERNAMEUsername, or numeric instance ID for Grafana Cloud (Basic Auth only)1234567
PROMETHEUS_PASSWORDPassword or access-policy token (Basic Auth only)glc_xxxxx...

Required permissions

The Prometheus connector is read-only — agents query and inspect but never write to your monitoring backend.
  • For Grafana Cloud, create an access-policy token with the metrics:read scope only.
  • For protected endpoints, ensure the credentials can reach the query, labels, targets, rules, and alerts API paths.
On Grafana Cloud, scope the access-policy token to metrics:read only — no other scope is needed for CloudThinker.

Agent capabilities

The Prometheus connector is read-only — agents query and inspect, but never modify your monitoring backend.
CapabilityWhat the agent can do
Instant queriesRun a PromQL expression for a single point in time
Range queriesRun a PromQL expression over a time window with a step interval
Metric discoveryList available metric names, optionally filtered by prefix
Label enumerationList label names and inspect the dimensions a metric is sliced by
Target healthInspect scrape targets and spot ones that are down or unhealthy
Alert inspectionList active alerts and review configured alert rules
Health probeRun the universal up query to confirm the backend and its targets are reachable

Verify the connection

@alex run the Prometheus health probe and confirm all scrape targets are reachable

Example prompts

@alex query node_cpu utilization across the cluster for the last hour and #report anything sustained above 85%
@kai list scrape targets that are currently down and #report which jobs they belong to
@alex show all active alerts and #recommend which to investigate first
Prometheus exposes no tool for label values — label enumeration returns label names only. Name the metric and the labels you care about so the agent can build an accurate PromQL selector.

Troubleshooting

  • Confirm PROMETHEUS_AUTH_TYPE matches what the endpoint expects.
  • For Bearer, verify the token is current and has not been revoked.
  • For Basic, verify the username/password — on Grafana Cloud, the username is the numeric instance ID and the password is the access-policy token.
  • Expected on managed, Mimir-backed endpoints (Grafana Cloud) — these paths are not exposed.
  • The query API (instant, range, labels, metadata) still works; use queries instead of target/rule inspection.
  • Verify PROMETHEUS_URL is reachable from CloudThinker over HTTPS.
  • For self-hosted or network-restricted endpoints, confirm there’s a network path from CloudThinker.
  • Drop any trailing /api/v1 from the URL — enter only the base URL.
  • Confirm the metric exists with a discovery query before slicing by labels.
  • Widen the time window — the series may not have samples in the requested range.

Security

  • Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
  • Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
  • Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
  • Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
  • Read-only by design — the connector never writes to your monitoring backend; no write permissions are needed
  • Least-privilege credentials — on Grafana Cloud, scope the access-policy token to metrics read only

https://mintcdn.com/cloudthinker/aLd-ttc-SCW-aFky/images/icons/grafana.svg?fit=max&auto=format&n=aLd-ttc-SCW-aFky&q=85&s=c1329049025cd3c3a0909b400baef7be

Grafana Connection

Dashboards and unified observability
https://mintcdn.com/cloudthinker/aLd-ttc-SCW-aFky/images/icons/datadog.svg?fit=max&auto=format&n=aLd-ttc-SCW-aFky&q=85&s=e8382167f2a1eb1e00971b5f4d703d48

Datadog Connection

Log search, metrics, and infrastructure monitoring