Skip to main content
Connect your InfluxDB instance to let Tony (Database Engineer) list what your instance stores, show how long each container keeps its data, and answer questions by querying the data itself. InfluxDB authenticates with a single API token. Changing retention or creating and deleting a container happens only after you turn the write tool on and approve each change — your stored data points are never writable through this connection.

Supported platforms

You do not tell CloudThinker which generation you run — the Connected message names what it found, and that answer decides whether agents work with buckets and Flux (InfluxDB 2) or databases and SQL (InfluxDB 3).

Prerequisites

  • An InfluxDB instance reachable from CloudThinker over its HTTP API. Self-hosted InfluxDB 2 usually answers on 8086, InfluxDB 3 Core on 8181.
  • An API token with read access to the buckets or databases you want the agent to see.
  • On InfluxDB 2 only: the name of the organization, if the token reaches more than one.

Setup

1

Create a read token

In the InfluxDB UI, open Load Data → API Tokens, click Generate, and choose Read/Write API Token. Select the buckets CloudThinker should read in the Read pane and leave the Write pane empty — see the InfluxDB 2 token guide.Copy the token immediately; InfluxDB shows the value once.
2

Add the connection in CloudThinker

Go to Connections → InfluxDB and enter:
  • Base URL: scheme, host, and port, such as https://influx.example.com:8086
  • API token: the token you just copied
  • Organization: your organization name, only if this token reaches more than one
Click Connect. The Connected message names the generation it found, such as InfluxDB 2 connection verified (v2.7.12).
Enter the Base URL only: scheme, host, port, and an optional reverse-proxy prefix such as /influx. Do not paste an API endpoint, query string, fragment, or embedded credentials — anything in the URL is carried into every request. Use https for any public or remote endpoint, because the token is sent on every request.

Connection details

Required permissions

The token needs read access to the containers you want inspected, and nothing more: Write access is needed only if you also turn the write tool on, and then only to change retention and create or delete a container. It is never needed to read.
Create a dedicated token for CloudThinker rather than reusing one — it keeps the access visible and revocable on its own. On InfluxDB 3 Core, any token has full admin permissions on the server; prefer Enterprise or InfluxDB 2 when a scoped token matters.

Agent capabilities

Once connected, Tony can read what your instance holds. Answers are bounded: the inventory reads at most 25 containers, and a query returns at most 50 rows by default within a 60-second budget; the agent says when a result was cut short. A retention the token cannot read is reported as unreadable, not merged into the forever count.

Verify the connection

Example prompts

Write access

The connection ships with writes turned off. A workspace owner turns the write tool on, and even then the agent states the exact container and change and waits for your approval every time. Reads never ask.
Shortening retention deletes data immediately: every point older than the new window expires, with no copy kept. Deleting a bucket on InfluxDB 2 removes its data at once with no undo; InfluxDB 3 soft-deletes and frees the storage later. The token is still the real limit — turning the tool on grants nothing the token does not already have.

Troubleshooting

The token was revoked, incompletely copied, or belongs to a different instance. InfluxDB shows a token’s value only at creation, so create a new token and reconnect.
The token is valid but its permissions do not cover the buckets or databases. Widen its read scope in InfluxDB, or create a token that includes them, then test again.
Nothing answered, or something answered that was not the InfluxDB API — including an InfluxDB 1.x instance or the InfluxDB Cloud Dedicated management API, neither of which is supported. Check that the instance is running and reachable from CloudThinker, that the Base URL points at the InfluxDB HTTP port — usually 8086 on InfluxDB 2 and 8181 on InfluxDB 3 Core — and that any path is only the proxy prefix.
Something in front of the instance is steering the API call to another host. CloudThinker never follows it, because that would send your token somewhere you did not name. Point the connection at the host that serves InfluxDB itself.
On InfluxDB 2, a token that reaches more than one organization leaves no bucket or query unambiguously scoped. Reconnect and set the Organization field to the one you want.
Statements that would stop being reads are refused: Flux that writes points or opens outbound connections on InfluxDB 2, and SQL that inserts, changes, or removes anything on InfluxDB 3. Nothing was sent to your instance. Rewrite the question as a read.
Either the token cannot see the rest, or the inventory stopped at its limit of 25. Check the token’s read scope first, then ask about the specific bucket or database by name.

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.
  • The token is the whole credential — there is no second factor, so scope it to the containers you want seen and treat an InfluxDB 3 Core token as an admin credential.
  • Stored data points are unreachable — no permission you grant and no switch you turn on makes your time-series data writable through CloudThinker.

Prometheus Connection

Metric queries, alert rules, and target health

ClickHouse Connection

Schema inspection and analytical query investigation