IMD SolutionComputing LibraryShop main store

Troubleshooting

Why native MQTT is missing from InfluxDB Cloud 2 sources

Edge computing and IIoT Published 8 min read By IMD Solution engineering team

Short answer

InfluxDB Cloud 2 does not include the native MQTT subscription source, and no plan tier or setting brings it back. Subscribe to the broker with an external collector such as Telegraf's MQTT consumer input, write to the Cloud 2 bucket through the v2 output plugin, and verify broker receipt and bucket writes separately.

On this page
  1. Why is the native MQTT subscription option missing from InfluxDB Cloud 2?
  2. Does a paid plan or a different region enable it?
  3. How do I confirm which product and region my instance runs?
  4. What replaces the native MQTT subscription in Cloud 2?
  5. Where should the collector run on the plant floor?
  6. How do I configure Telegraf to write MQTT data into the bucket?
  7. How do I verify the broker, the collector and the bucket separately?
  8. When should I escalate instead of re-testing the console?
  9. Questions asked

The source you are looking for is not hidden behind a setting: InfluxDB Cloud 2 has retired its native MQTT subscription, so no Sources page, plan tier or account change brings it back. Payment status is irrelevant here, because a subscription activates entitlements, not features the product no longer ships. The working path is to subscribe outside the database: run an MQTT-capable collector such as Telegraf with its MQTT consumer input on a plant-side PC, point its InfluxDB v2 output at your Cloud 2 bucket, and verify broker receipt and bucket writes as two separate checks. This article shows how to confirm your instance, place the collector, configure both ends, and prove each hop with numbers before you trust the data.

Why is the native MQTT subscription option missing from InfluxDB Cloud 2? #

The native MQTT subscription source has been retired, end-of-life for the Cloud 2 product, so the Sources list on a Cloud 2 instance, in any region and on any plan, no longer offers it and no setting, refresh or restart restores a retired cloud feature.

A native source would let the database service hold the broker connection itself: you would register the broker, the topics and the credentials in the console, and points would land without a separate client. That capability has been withdrawn from Cloud 2, so an empty spot in the Sources list is a product-lifecycle fact, not a network fault, a credential fault or a timing fault. Treat it like a discontinued part number: console refreshes, new organizations and extra entitlements do not reactivate it. The recurring mistake here is reading paid as enabled — the plan governs retention and limits, while source availability is decided by the product and its release state.

Does a paid plan or a different region enable it? #

No: payment status enables nothing that the product has retired, and the Sources list of a paid Cloud 2 account in us-central1-1 looks the same as an unpaid one, with the native MQTT entry absent on both.

Plan tiers govern retention, limits and support; they do not switch retired features back on. Region does matter for some cloud features, which is exactly why availability is judged per instance: select the exact product and region in the documentation before you decide, and treat pages written for other versions or deployment types as inapplicable. Managed InfluxDB offerings also publish their own availability tables — the AWS-hosted Timestream for InfluxDB service, for instance, lists its own set of AWS regions — so a feature page for one managed service proves nothing about your Cloud 2 region. The decision: if your console shows no native MQTT source, the account is not the cause and deserves no more time.

How do I confirm which product and region my instance runs? #

Read the endpoint in the browser address bar: an address such as us-central1-1.gcp.cloud2.influxdata.com identifies a Cloud 2 instance in a specific region, and that exact product and region string is what you select when checking a feature in the documentation.

Record the endpoint exactly as displayed, including the region segment ahead of the first dot. In the documentation, set the product and region selectors to what the endpoint shows, then look for the native MQTT source under that scope. The check is three lines:

  • Product: InfluxDB Cloud 2, not Cloud Serverless, Cloud Dedicated or a self-hosted release.
  • Region: the segment the endpoint carries, for example us-central1-1.
  • Deployment type: a feature page applies only when it names the same managed cloud product.

If a page appears to document the native source, compare its version and region against your endpoint before relying on it.

What replaces the native MQTT subscription in Cloud 2? #

An external subscriber takes over the job: Telegraf with the MQTT consumer input connects to your broker, decodes each payload into measurement, tags and fields, and writes the points to your Cloud 2 bucket through the InfluxDB v2 output plugin.

The duty split is simple: the collector is the MQTT client that holds the broker session, and the database only accepts writes. That is the supported architecture for Cloud 2 today, and any collector that speaks both MQTT and the Cloud 2 write interface is a valid substitute; Telegraf is the one the rest of this site's ingestion guides use, which keeps your troubleshooting references consistent. The subscription responsibility has moved outside the database service, not disappeared — broker reachability, authentication and payload decoding now belong to the collector host, and they are the first things to check when data stops.

Where should the collector run on the plant floor? #

Run it inside the plant network, next to the broker and the controllers: a compact fanless mini PC in the control cabinet handles broker traffic locally and forwards only written metrics over the WAN link, so an internet outage never stops data collection.

An existing plant server or a virtual machine works as well when one already sits near the broker; the requirements are modest. The collector needs the broker's MQTT port, 1883 in cleartext or 8883 under TLS, plus outbound HTTPS on 443 to the cloud write endpoint, and nothing needs to be reachable from the outside. One safety rule belongs here: keep TLS on the broker hop and scope the bucket token to writes on that single bucket, because the collector holds process data and a write credential in one box.

How do I configure Telegraf to write MQTT data into the bucket? #

Configure two plugins and one mapping: the MQTT consumer input for broker, topics and payload format, the InfluxDB v2 output for endpoint, organization, bucket and token, and a deliberate decision on measurement names, field types and timestamps before you subscribe at scale.

Work through it in this order:

  1. Collect the broker facts: address and port, for example 192.168.1.50 on 1883, the topic filter, the authentication method, and the payload format the devices publish.
  2. Fill in the inputs.mqtt_consumer block with those facts, setting the consumer's data format option to match the payload; devices publishing XML are covered step by step in the article on parsing MQTT XML with the MQTT consumer input.
  3. Map the payload deliberately: pick measurement and tag keys, declare numeric fields as numbers, and decide whether the timestamp comes from the payload or from arrival at the collector, because undeclared values arrive as strings.
  4. Fill in the outputs.influxdb_v2 block with the Cloud 2 endpoint URL, the organization, the bucket and an API token with write permission on that bucket.
  5. Subscribe to one topic first, confirm points in the bucket, then widen the topic filter; a validated configuration file proves only syntax, not data flow.

How do I verify the broker, the collector and the bucket separately? #

Prove each hop on its own: a connected broker session, messages arriving on the subscribed topics, and new points in the bucket are three separate facts, and broker receipt alone never proves that anything reached the database.

Check them in this sequence:

  • Broker: the collector's log shows a session established and the subscription accepted for your topic filter.
  • Consumer input: its message counter advances while a device publishes, which isolates broker delivery from database writes.
  • Bucket: query for a known tag value and a fresh timestamp, and count points over the last five minutes instead of trusting a single write.
  • Schema: fields come through numeric as intended, and timestamps carry the payload time where you configured that.

Worked example, with illustrative numbers. A line publishes 20 topics, one message per topic every 5 s. The message rate is 20 ÷ 5 s = 4 messages/s, and with one measurement per message the write rate is 4 points/s. Per hour that is 4 × 3,600 s = 14,400 points, and per day 14,400 × 24 = 345,600 points. If the WAN link to the cloud drops for 2 h, the output must buffer 4 points/s × 7,200 s = 28,800 metrics; at an assumed 200 B per serialized metric the buffer needs 28,800 × 200 B = 5,760,000 B, about 5.8 MB. Size the output's buffer above the figure your outage length produces, because points beyond a full in-memory buffer are dropped.

Two failure patterns recur after this setup works. If the consumer shows a live broker session while the bucket stays empty, work through the Cloud-specific case of a Telegraf MQTT consumer writing nothing to InfluxDB Cloud, then the general one where it connects but writes no data to InfluxDB. If data returns as zeros or gaps after a broker or edge-node restart, that is the reconnect trap behind a historian storing zero after an MQTT edge node reconnects, and it is fixed in the subscriber's resubscribe behavior, not in the cloud.

When should I escalate instead of re-testing the console? #

Escalate to the vendor only when the record contradicts itself: documentation selected for your exact Cloud 2 region appears to list the native MQTT source, or a collector you have validated against broker and write endpoint still fails, and you attach the instance product, region, endpoint and the checks above.

Everything else is settled by the replacement decision; there is no console path to re-test and no entitlement to buy for this feature. The decisions, case by case:

  • Sources list on Cloud 2 shows no native MQTT entry: the feature is retired — stand up the external collector as laid out above.
  • A feature page names the native source under a different version, region or deployment type: inapplicable to your instance — re-check with your endpoint's own selectors.
  • The collector connects to the broker but the bucket stays empty: a write-path fault — follow the Cloud write-failure article linked above.
  • Data returns as zeros or gaps after a restart: a reconnect problem — fix the subscriber's resubscribe behavior.

Questions asked

Does the collector lose MQTT data while InfluxDB Cloud is unreachable?

The output plugin buffers metrics in memory while the cloud endpoint is down and flushes them when the link returns, up to the configured buffer limit. Points beyond the limit are dropped, so size the buffer for the longest outage you accept using the arithmetic above, and monitor buffer use on the collector.

What scope does the Cloud 2 write token need?

Create a token with write permission on the one target bucket, then record the organization and bucket names next to it in the output configuration. A token scoped to a single bucket cannot write anywhere else in the account, which limits the damage if the collector's configuration file leaks.

Can one collector subscribe to more than one broker?

Yes. Repeat the MQTT consumer input with a second broker address, its own topic filter and its own credentials; all inputs then share the same output to the bucket. Give each input distinct measurement names, or a tag carrying the broker or line identity, so the points stay separable.

Why do numeric sensor values arrive as strings in the bucket?

The consumer decodes payloads as text unless the payload format and the value types are declared. Set the format your devices actually publish, declare numeric fields as numbers, and test with one representative message before subscribing; the string-measurement failure has its own article on this site.

Keep reading

  • Troubleshooting

    Troubleshoot missing data in a Node-RED InfluxDB Grafana stack

    Work the chain in order: acquisition into Node-RED, the InfluxDB service and its storage mount, the write settings, then the Grafana query. In a 2.x stack most empty panels trace to a wrong token, bucket, URL or a controller clock that stamps points outside the panel's time range.

    Edge computing and IIoT

  • How-to

    Replaying buffered InfluxDB records to Azure IoT Hub over MQTT

    Yes — but not with the TICK stack alone. Telegraf's MQTT output forwards the live stream, not database history, and Kapacitor aggregates; run a small replay worker that queries InfluxDB after a durable (time, name) cursor and publishes each raw record to Azure IoT Hub at QoS 1, advancing the cursor only on acknowledgment. At 1 record/s arriving, publish at 5 records/s so a full 7-day buffer of 604,800 records clears in 42 hours.

    Edge computing and IIoT

  • Troubleshooting

    Why Telegraf MQTT consumer writes nothing to InfluxDB Cloud

    Nothing reaches the bucket because three faults act at once: the broker URL on port 8883 has no ssl:// scheme, so the consumer never subscribes; the published payload is not valid line protocol, so the parser rejects it; and the token variable expands empty inside the service, so writes return HTTP 401. Fix all three, delete tag_keys for the influx data format, and give each Telegraf instance its own client_id.

    Edge computing and IIoT

PI AF attribute with no PI Point tag in PI Vision