Softwr

Networking · head to head

MQTT vs Thanos

MQTT logo

MQTT

Networking

Lightweight messaging protocol for IoT devices

From
Free
Free plan
Yes
Thanos logo

Thanos

Cloud

Highly available Prometheus with long-term object storage

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only MQTT lists QoS Levels; only Thanos lists global query.
  • Where MQTT falls short: MQTT is an open-source protocol standard with no commercial pricing; not a commercial product.
  • Where Thanos falls short: several components — sidecar, store, querier, compactor, ruler — each with its own configuration and failure modes.

How do MQTT and Thanos differ?

MQTT and Thanos differ on pricing model, platforms and category (Networking against Cloud). Only the attributes on which MQTT and Thanos actually diverge.

Attributes where MQTT and Thanos differ
AttributeMQTTThanos
Pricing modelOpen-sourceOpen source, no licence fee
PlatformsAny platform, Embedded devices, Web, Browser extensionSelf-hosted, Linux
CategoryNetworkingCloud

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for Thanos.

Which features does each one have?

They share no listed features; 12 appear only for MQTT and 4 only for Thanos. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in MQTT

  • Publish-Subscribe
  • Lightweight
  • QoS Levels
  • Retained Messages
  • IoT platforms
  • Home automation
  • Cloud services
  • Edge devices

Only in Thanos

  • Global query
  • Object storage retention
  • Deduplication
  • Downsampling

What is each one used for?

MQTT is most often brought in for IoT messaging; Thanos for querying metrics across many clusters or regions from one place. The jobs each tool is most often brought in to do.

MQTT

  • IoT messagingnot Thanos
  • Sensor datanot Thanos
  • Real-time updatesnot Thanos
  • Device telemetrynot Thanos

Thanos

  • Querying metrics across many clusters or regions from one placenot MQTT
  • Retaining metrics for years without local disk growthnot MQTT
  • Removing the gap that appears when a single Prometheus instance restartsnot MQTT

Where do MQTT and Thanos fall short?

MQTT's most cited limit: MQTT is an open-source protocol standard with no commercial pricing; not a commercial product. Thanos's: several components — sidecar, store, querier, compactor, ruler — each with its own configuration and failure modes. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

MQTT

  • MQTT is an open-source protocol standard with no commercial pricing; not a commercial product
  • Security is not built into the protocol: encryption relies on TLS or application level encryption, and TLS adds network overhead
  • Clients cannot exchange messages directly: a broker server is required to route published messages to subscribers
  • Delivery has only three quality of service levels (at most once, at least once, exactly once), so richer routing needs broker features

Thanos

  • Several components — sidecar, store, querier, compactor, ruler — each with its own configuration and failure modes
  • The compactor is a common source of operational trouble and must not run twice against the same bucket
  • Query latency over object storage is meaningfully higher than local Prometheus
  • Object storage costs and API request charges become real at high volume

How much do MQTT and Thanos cost?

MQTT is free to use; Thanos is free to use. Plan by plan below, from each vendor's own pricing page.

MQTT

Free
  • Open ProtocolFree
    • Publish-subscribe
    • Lightweight
    • QoS levels

Thanos

Free
  • ThanosFree
    • Full functionality
    • No usage limits
    • Community support

Which should you pick?

Choose MQTT if

  • You need publish-subscribe.
  • You want to start without paying.
  • You work on Any platform, Embedded devices, Web, Browser extension.
  • You also want lightweight.

Choose Thanos if

  • You need global query.
  • You want to start without paying.
  • You work on Self-hosted, Linux.
  • You also want object storage retention.

Questions people ask

Is MQTT or Thanos better?
It depends on the job. MQTT fits ioT messaging; Thanos fits querying metrics across many clusters or regions from one place. MQTT starts at Free and Thanos at Free.
Which is cheaper, MQTT or Thanos?
MQTT starts at Free and Thanos at Free.
Does MQTT or Thanos run on more platforms?
MQTT runs on Any platform, Embedded devices, Web, Browser extension. Thanos runs on Self-hosted, Linux.
Can I use MQTT for free?
Both have a free tier, so you can try either at no cost before committing.
What is MQTT best used for?
MQTT is most often used for iot messaging, sensor data, real-time updates, device telemetry. Of those, iot messaging and sensor data are not what Thanos is typically brought in for.
What can MQTT do that Thanos cannot?
MQTT covers Publish-Subscribe, Lightweight, QoS Levels, Retained Messages. Thanos covers Global query, Object storage retention, Deduplication, Downsampling.

Answered from the vendors’ own pages

MQTT: Does MQTT have a commercial license cost?

MQTT is an open-source communication protocol and standard. No pricing is published because MQTT itself is not a commercial product for sale.

Source
Thanos: Is Thanos free?

Yes, open source and CNCF-incubating. Costs are the object storage it uses.

Thanos: Does Thanos replace Prometheus?

No. It runs alongside existing Prometheus servers, adding global query, deduplication and long-term storage.

Thanos: Thanos or VictoriaMetrics?

Thanos layers onto Prometheus using object storage and is the more established multi-cluster answer. VictoriaMetrics is a separate store aiming at lower resource use and fewer moving parts.

Share

Related pages

Other head to heads