Connect InfluxDB to CloudThinker for bucket and database inventory, retention review, and bounded time-series queries on both InfluxDB 2 and InfluxDB 3
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. Reads need nothing else. Changing retention or creating and deleting a container is possible, but only after you turn it on and approve each change. Your stored data points are never writable through this connection.
You do not tell CloudThinker which one you run. The connection asks the instance when you connect, and the Connected message names what it found. That answer decides everything afterwards, because InfluxDB 2 and InfluxDB 3 are different products: InfluxDB 2 keeps buckets inside an organization and queries in Flux, while InfluxDB 3 keeps databases, has no organizations, and queries in SQL.
An InfluxDB instance reachable from CloudThinker over its HTTP API. Self-hosted InfluxDB 2 usually answers on 8086, InfluxDB 3 Core on 8181, and InfluxDB Cloud 2 on a URL like https://us-east-1-1.aws.cloud2.influxdata.com.
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 this token reaches more than one.
Create a token for CloudThinker rather than reusing one. A token is the whole credential here, so a dedicated one keeps the access visible in the InfluxDB token list and revocable on its own.
In the InfluxDB UI, open Load Data → API Tokens, then click Generate and choose Read/Write API Token.Give it a description you will recognize, then select the buckets you want CloudThinker to read in the Read pane. Leave the Write pane empty.Choose All Access API Token only if you plan to let the agent change retention or create and delete buckets.
2
Copy the token
InfluxDB shows the token value once, immediately after it is created. Copy it now. If you lose it, create another one; the value cannot be shown again.
3
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, but only if this token reaches more than one. Leave it blank otherwise.
Click Connect.
1
Create a token
On InfluxDB 3 Core, create an admin token with the influxdb3 CLI:
Core issues admin tokens only, so this token has full permissions on the server. Read Security before you use one.On InfluxDB 3 Enterprise, create a resource token scoped to read the databases you want instead, which is the narrower option and the one to prefer.
2
Copy the token
The token value is returned once, in the command output. Copy it now.
3
Add the connection in CloudThinker
Go to Connections → InfluxDB and enter:
Base URL: scheme, host, and port, such as https://influx.example.com:8181
API token: the token you just created
Organization: leave blank. InfluxDB 3 has no organizations and ignores this field.
Click Connect.
Enter the Base URL only — scheme, host, and port. A path is allowed, because InfluxDB is often published behind a proxy at a prefix such as /influx, but a query string, a fragment, or a username and password in the URL is rejected. Anything you put in the URL is carried into every request the connection makes.
The Base URL must use https. The token is sent on every request, so plain http is rejected.
Scheme, host, and port of the InfluxDB HTTP API, with no trailing path
Yes
API token
An InfluxDB API token with read access to the buckets or databases you want seen
Yes
Organization
InfluxDB 2 only, and only when the token reaches more than one organization
No
When you connect, CloudThinker asks the instance which generation it is, then reads one container to prove the token works. The Connected message names what it found, such as InfluxDB 2 connection verified (v2.7.12). A failure comes back as one specific reason — see Troubleshooting.
The token needs read access to the containers you want inspected, and nothing more:
Generation
Minimum
How to grant it
InfluxDB 2
Read on the buckets you want seen
A Read/Write API Token with buckets selected in the Read pane only
InfluxDB 3 Enterprise
Read on the databases you want seen
A resource token scoped to those databases
InfluxDB 3 Core
Not available
Core issues admin tokens only
Write access is needed only if you also turn the write tool on, and then only to change retention and to create or delete a container. It is never needed to read.
InfluxDB 3 Core cannot issue a narrow token. Fine-grained tokens are an Enterprise feature, so any token a Core instance gives you has full admin permissions on that server. The connection itself still only reads unless you turn the write tool on, but the token is broader than the connection. Weigh that before connecting a Core instance you care about, and prefer Enterprise or InfluxDB 2 where a scoped token is possible.
@tony #report which InfluxDB containers keep their data forever, and what that is costing us@tony #report count the points written to the telemetry bucket in the last 24 hours@tony #recommend a retention policy for our highest-volume container
Answers are bounded so a broad question cannot pull the whole instance: the inventory reads at most 25 containers, and a query returns at most 50 rows by default within a 60 second budget. When a result is cut short the agent says so, and a row sample is never reported as a total. Name the container you care about, or ask for a count in the query itself, to get an exact answer.
A retention the token cannot read is reported as unreadable, which is not the same as forever. It means the exposure was not measured. The two are never merged into one count.
The connection ships with writes turned off, and there are two separate barriers before anything changes.
Barrier
What it means
The write tool is off by default
A workspace owner turns it on. Until then, every change is refused
Every change asks you first
Even with the tool on, the agent states the exact container and the exact change and waits for your approval. Reads never ask
What a change can and cannot touch:
Action
Allowed
Change a container’s retention
Yes, after approval
Create a bucket or database
Yes, after approval
Delete a bucket or database
Yes, after approval
Write, edit, or delete stored data points
Never. The connection has no path to it at all
Three things to weigh before turning it on:
Shortening retention deletes data immediately. Setting a finite retention on a container that kept everything expires every point already older than the new window, with no copy kept. This is the most destructive thing the connection can do, and it does not look destructive.
Deleting works differently on each generation. InfluxDB 2 removes the bucket and all of its data at once, with no undo. InfluxDB 3 soft-deletes: it renames the database with a timestamp suffix, keeps it listed as deleted, and hard-deletes it later — so your storage is not freed when the agent reports success.
The token is still the real limit. Turning the tool on does not grant a permission your token does not already have. A read-only token stays read-only no matter what is switched on in CloudThinker.
The token was revoked, or it belongs to a different instance. Create a new token and reconnect. InfluxDB shows a token’s value only when it is created, so an incompletely copied token fails the same way.
InfluxDB accepted the token but it has no read permission
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 the connection again.
This URL answered, but not on the InfluxDB API path
Something answered, but it was not the InfluxDB API. Check 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 you added is the proxy prefix and nothing more.
It did not identify itself as InfluxDB 2 or InfluxDB 3
The URL reaches something that is not an InfluxDB HTTP port, or it reaches an InfluxDB 1.x instance. This connection does not support 1.x, and it does not support the InfluxDB Cloud Dedicated management API. Confirm the port before reconnecting.
Nothing answered at this URL
No response at all. Check the host and port, that the instance is running, and that it is reachable from CloudThinker rather than only from inside your network.
The listing endpoint did not answer with the expected shape
The token worked and the instance identified itself, but the response was not what the InfluxDB API returns. This is almost always a proxy in front of the instance rewriting API responses. Point the Base URL at the instance directly.
A redirect was refused
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.
An agent says the token reaches several organizations
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.
An agent refuses to run a query
Some statements are refused because they would stop being reads. On InfluxDB 2 the InfluxDB server itself evaluates Flux, so a statement that writes points or opens an outbound connection from the server is blocked. On InfluxDB 3, a SQL statement that starts with INSERT, UPDATE, DELETE, DROP, CREATE, ALTER, TRUNCATE, GRANT, REVOKE, or COPY is blocked. The refusal names what was blocked, and nothing was sent to your instance. Rewrite the question as a read.
An agent reports fewer containers than the InfluxDB UI shows
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, which is looked up directly.
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 and no separate username, so scope it to the containers you want seen and nothing else.
Stored data points are unreachable — the connection ships no path to write or delete a point, so no permission you grant and no switch you turn on makes your time-series data writable through CloudThinker.
Writes are off, then gated — the write tool is off until a workspace owner turns it on, and every change still asks you first. Reads never ask.
Redirects are never followed — the token goes to the host you configured, or nowhere.
Prefer a scoped token — InfluxDB 2 and InfluxDB 3 Enterprise can both issue one. InfluxDB 3 Core cannot, so treat a Core token as an admin credential.