IMD SolutionComputing LibraryShop main store

Explainer

Why InfluxDB Cloud needs no uploaded certificates

Edge computing and IIoT Published 7 min read

Short answer

InfluxDB Cloud is a managed database service: there is no server to reach with SSH or SFTP, so no certificates can or need to be uploaded to it. MQTT TLS certificates live on the broker and the Telegraf host, and the cloud write authenticates with an API token over HTTPS. Run Telegraf on a VM or edge PC you control.

On this page
  1. Why there is no InfluxDB Cloud server to open
  2. Where each certificate and credential actually lives
  3. Starting Telegraf on a host you control
  4. Sizing the Telegraf buffer for 200 messages per second and a 30 minute cloud outage
  5. Reading the failure in order
  6. The decision for each case
  7. Questions asked

You cannot upload certificates to InfluxDB Cloud, because there is no server to upload them to. The subscription buys a managed database endpoint, not a virtual machine: no SSH, no SFTP, no file system, and no terminal inside the service. The vendor documents the cloud as a fully managed offering, so the instance missing from your AWS console is the product working as designed, not a fault in your setup. MQTT TLS certificates belong to the MQTT hop, which means the broker and the Telegraf host, and the write to the cloud authenticates with an API token over HTTPS. This article places every certificate at the hop that uses it, shows where Telegraf actually runs, and sizes the one machine you do manage.

Why there is no InfluxDB Cloud server to open #

InfluxDB Cloud is software as a service: what you receive is a database endpoint, a web UI and an API, not a virtual machine. The managed databases run on the vendor's own infrastructure on AWS and Azure, with zone and instance size chosen in the vendor's UI rather than in a cloud console of your own. Because no virtual machine exists in your account, there is no instance ID, no key pair, no security group and no SSH path. There is no CLI route around this either, since there is no host for a CLI to reach.

When the cloud UI hands you a terminal command, for example the snippet that installs or starts Telegraf, that command targets a machine you control: the collector that will write to the cloud. Run it on your VM or edge PC. It is not an instruction to find a shell inside the service, and no such shell exists.

Capability InfluxDB Cloud provides Stays on your side
Database service, updates, TLS on the write endpoint Managed by the vendor Nothing to install
Shell, SSH or SFTP access None Not applicable, no host to reach
Telegraf runtime Not hosted Your VM or edge PC
MQTT broker certificates Not involved Broker host or managed-broker configuration
Write authorization API token created in the UI Stored in the Telegraf output configuration

Even key handling is a documented cloud feature: the service supports customer-managed encryption keys on AWS and Azure, so nothing about transport or storage security calls for a manual file upload. A certificate sent to the database would have no reader there. The cloud never opens an MQTT session to your equipment and never presents or validates your certificates; it only receives HTTPS writes.

Where each certificate and credential actually lives #

Draw the path before configuring anything. Your data makes two separate encrypted relationships, and each one has its own client, its own server and its own secrets.

Hop Client and server Credential or certificate Where it lives Proof it works
MQTT publish Device or application to MQTT broker Broker certificate and its private key Broker host, or the managed-broker configuration A subscriber sees the expected topic
MQTT subscribe Telegraf to MQTT broker CA certificate that signs the broker certificate; with mutual TLS, a Telegraf client certificate and private key besides Telegraf host A test message arrives at the Telegraf input
Database write Telegraf to InfluxDB Cloud API token from the cloud UI, under Load Data > API Tokens Telegraf output configuration A test record with a known tag and timestamp appears

The broker presents its certificate to Telegraf, and Telegraf validates it against the CA material you placed on the Telegraf host. Mutual TLS adds the reverse direction: Telegraf presents a client certificate and holds the matching private key, and the broker trusts the authority that issued it. Private keys sit only on the machines that present them, with file access restricted to the service identity running each process; a private key on the database host would protect nothing and widen exposure. Keep MQTT credentials and the cloud token separate, so a leaked broker login cannot write to the historian and a leaked token cannot touch the broker. For how those broker-side certificates chain and rotate, the page on how TLS certificates secure a dynamic MQTT broker goes deeper.

Starting Telegraf on a host you control #

Telegraf installs on any machine that can reach both peers: the broker listener on one side and the cloud endpoint over outbound HTTPS on the other. A dedicated VM in your own cloud account is one option, an on-premises edge PC is another. Bring the host's network up first; Configure IP networking on an edge PC with no SSH access covers the case where the box has no shell to do it from. Then wire the input and output; How to store MQTT messages in InfluxDB with Telegraf walks the MQTT consumer feeding a cloud write.

If the plant has no spare machine for the role, a fanless industrial mini PC built for continuous cabinet duty is the fitting host for this collector. What the box needs when it carries more than one service is covered in Sizing one PC for InfluxDB, Telegraf, Grafana and Node-RED.

Prove reachability before touching application settings: from the Telegraf host, confirm the broker listener answers and the cloud endpoint responds. One token-authenticated test write from any machine that can reach the endpoint settles the cloud path before Telegraf is involved at all. If some history already sits in a local InfluxDB, whether Telegraf can read a local InfluxDB bucket and feed the cloud is covered on its own page. Run the agent under the host's service manager so it returns after a power cut, and read its log locally, because the cloud UI cannot show you a process that was never inside the cloud.

Sizing the Telegraf buffer for 200 messages per second and a 30 minute cloud outage #

The inputs below are example values for a typical line, not measured plant figures; substitute your own subscription rate and recovery target. The subscription rate is 200 messages per second, an aggregate across one line's topics. The outage tolerance is 30 minutes, meaning the longest cloud outage these writes must ride through without loss.

The rule in words: buffer capacity on the Telegraf host must hold at least the subscription rate multiplied by the outage duration, because every message arriving while the write path is down waits in that buffer.

The arithmetic: 200 messages/s times 30 minutes, with 30 minutes equal to 1,800 s, gives 200 × 1,800 = 360,000 messages.

The result: this host needs buffering for at least 360,000 messages.

The decision it leads to: provision buffering for 360,000 messages on this host, and treat every additional 10 minutes of tolerance as 120,000 more messages (200 × 600 = 120,000). Splitting the load across two parallel instances at 100 messages per second each lowers the per-host requirement to 180,000 messages (100 × 1,800), not the total. To convert the message count to disk, multiply by your measured bytes per point; the example stops at the message count because point size depends on each payload's tags and fields.

Reading the failure in order #

A stalled pipeline blames certificates first, but the layers fail in a fixed order, and the error type tells you which layer broke. Network comes first: address, name resolution, route and firewall. A certificate change cannot repair a missing route.

TLS comes second. Certificate errors surface during the handshake, before any MQTT topic logic runs, so a validation failure points at the broker certificate chain, the CA material on the Telegraf host, or a name and clock mismatch between the two peers. MQTT authorization comes third: once TLS succeeds, connect and subscribe failures are broker credentials and topic permissions, nothing else. The database write comes last: a token or authorization error belongs to the write leg alone and says nothing about MQTT. Fix in that order, and note that installing a certificate on the cloud would not have changed the outcome at any of the three layers.

The decision for each case #

If you came to upload SSL certificates to your InfluxDB cloud instance: you do not, and there is no mechanism to, because the service exposes an endpoint and a token rather than a host. The certificates that protect MQTT stay at the broker and on the Telegraf host, placed exactly as the table above assigns them.

If you need a secure MQTT connection: configure the broker's certificate and key, trust them from the Telegraf host, and add the client certificate pair only when you deliberately run mutual TLS. If you need to start Telegraf: run it on a VM or edge PC you control, supervised by that machine's service manager, with its buffer sized from subscription rate times outage duration. If you wanted the whole stack as SaaS: the database is the managed part, collection remains customer-run, and additional instances split the load when device counts grow.

Questions asked

Can I install or restart Telegraf from the InfluxDB Cloud interface?

No. The cloud service exposes a database endpoint, a UI and an API, with no shell or file system behind them. Install Telegraf on a machine you control, run it under that machine's service manager so it comes back after a power cut, and read its log locally. The setup commands the cloud UI prints are meant for exactly that machine.

Do writes to InfluxDB Cloud need a client certificate?

No. The write leg authenticates with an API token you create in the cloud UI and place in the Telegraf output configuration, over HTTPS. Certificates enter the picture only on the MQTT leg, and only if you run TLS or mutual TLS there. Keep the token and the MQTT credentials separate so one leaked secret cannot compromise both legs.

Why does my InfluxDB Cloud instance not appear in the AWS console?

Because it is not an instance in your account. The managed databases run on the vendor's own cloud infrastructure on AWS and Azure, and you set zone and size through the vendor's UI. Your account owns no virtual machine, so there is no instance ID, key pair or security group to manage, only an endpoint URL and a token.

How do I scale Telegraf as more devices publish?

Run additional Telegraf instances and divide devices or topics between them, so each instance carries a share of the subscription rate. Size each host's buffer from its own rate and the outage it must tolerate. Watch for overlapping subscriptions: two instances subscribed to the same topics can write duplicate records unless the broker design and the data schema account for it.

How can I prove the cloud write path before installing Telegraf?

Send one test write directly to the cloud endpoint with your token, from any machine that can reach it. If a record lands with the tag, value and timestamp you sent, reachability and authorization are proven. Then add Telegraf and confirm the same tag arrives from the MQTT subscription, which isolates a broker problem from a database problem.

Keep reading

  • Comparison

    Historian-like data logging on a restricted edge network

    On a restricted plant network the approved destination decides the architecture: write directly from Node-RED to the database when that connection is approved, publish MQTT and land it in InfluxDB with Telegraf when only a broker is approved, and capture to local files when nothing outbound is allowed. Whatever the path, prove store-and-forward with an outage test sized from your tag count and write period.

    Edge computing and IIoT

  • Troubleshooting

    Telegraf cannot reach an InfluxDB container by its name

    Docker container names resolve only inside the Docker network, so a Telegraf service running on the host cannot use the container name with the published number. Point the InfluxDB output at the published host port, localhost with 8087 for an 8087:8086 mapping. If that address returns EOF, name resolution is fixed and a separate published-endpoint fault remains; verify it with a direct query to the query endpoint before touching Telegraf.

    Edge computing and IIoT

  • Troubleshooting

    Telegraf failed to send metrics to any configured server

    The error means the outputs.influxdb_v2 plugin tried every server in its URL list and none accepted a write. Work outward in order: destination URL and port 8086, the InfluxDB HTTP bind address on the Windows PC, a scoped Windows Firewall inbound rule, then TLS trust and the organization, bucket and token on the new server. A ping proves neither the listener nor the credentials.

    Edge computing and IIoT