HiveMQ 4 icon

HiveMQ 4

Enterprise MQTT broker for IoT

Messaging Apache-2.0
HiveMQ 4 illustration

What is this?

HiveMQ is an enterprise-grade MQTT broker that adds a web-based management console on top of standard MQTT messaging. You can see connected clients, monitor message throughput, and manage access control — all from a browser.

It handles the same publish/subscribe messaging as Mosquitto but adds management visibility that larger deployments need. When you have dozens of sensors and multiple subscribing applications, the console shows you exactly what’s connected and how data is flowing.

Note: HiveMQ serves as the application data plane only. It is not the Margo transport layer. Margo uses pull-based HTTPS REST with RFC 9421 signatures for device management communication.

Example: how a factory uses it

A food processing plant has 80 temperature sensors across four cold-storage rooms. Each sensor publishes to HiveMQ every 5 seconds. The plant’s quality manager opens the HiveMQ console in a browser to see all 80 sensors are connected and publishing. One room’s sensors show as disconnected — a network switch failed. She spots it immediately from the console’s client list, calls maintenance, and avoids a food safety incident. Meanwhile, the alarm system (subscribed via MQTT) triggers its own alert.

Network Topology

graph TD
    subgraph Production Line A
        A1[Filling Machine]
        A2[Capping Station]
    end

    subgraph Production Line B
        B1[Labeler]
        B2[Palletizer]
    end

    subgraph Edge Gateway
        HIVEMQ[HiveMQ 4
:1883 MQTT
:8080 Console] end subgraph Subscribers SCADA[SCADA System] MES[MES Platform] HIST[Historian] end A1 & A2 -->|pub line-a/#| HIVEMQ B1 & B2 -->|pub line-b/#| HIVEMQ HIVEMQ -->|ACL filtered| SCADA & MES & HIST

Import this app

Paste this into your Margo manager to import the app:

public.ecr.aws/g2n4p2m7/belden-margo:1.1.2_hivemq-margo-manifest

Run: oras pull public.ecr.aws/g2n4p2m7/belden-margo:1.1.2_hivemq-margo-manifest

Technical details

Deployment Profiles

  • PROPOSED — quadlet (WG-PROPOSAL-02)

    Systemd-native deployment using Podman Quadlet. Supports amd64 and arm64.

Application Description (margo.yaml)

apiVersion: margo.org/v1alpha1
kind: ApplicationDescription
id: com-belden-hivemq
metadata:
  name: "HiveMQ 4"
  version: 1.1.1+hivemq-margo-manifest
  description: "Enterprise-grade MQTT broker with web management console"
  catalog:
    application:
      tagline: "Enterprise MQTT broker for IoT"
      tags:
        - "iot"
        - "mqtt"
        - "broker"
        - "edge-computing"
    organization:
      - name: "HiveMQ GmbH"
        site: "https://www.hivemq.com"

deploymentProfiles:
  - id: "quadlet-v1"
    type: "quadlet"
    description: "Systemd-native deployment using Podman Quadlet. Supports amd64 and arm64."
    requiredResources:
      cpu:
        cores: 0.5
        architectures:
          - amd64
          - arm64
      memory: "512Mi"
      storage: "512Mi"
      interfaces:
        - type: ethernet
    components:
      - name: "hivemq-quadlet"
        properties:
          repository: oci://public.ecr.aws/g2n4p2m7/belden-margo
          revision: 1.1.1_hivemq-quadlet
          wait: true
          timeout: "5m0s"

parameters:
  mqttPort:
    value: 1883
    targets:
      - pointer: "MQTT_PORT"
        components:
          - hivemq-quadlet

  consolePort:
    value: 8080
    targets:
      - pointer: "CONSOLE_PORT"
        components:
          - hivemq-quadlet

configuration:
  sections:
    - name: "MQTT"
      settings:
        - parameter: mqttPort
          name: "MQTT Port"
          immutable: false
          schema: mqttPortSchema

    - name: "Console"
      settings:
        - parameter: consolePort
          name: "Console Port"
          immutable: false
          schema: consolePortSchema

  schema:
    - name: mqttPortSchema
      dataType: integer
      minValue: 1
      maxValue: 65535
      allowEmpty: false

    - name: consolePortSchema
      dataType: integer
      minValue: 1
      maxValue: 65535
      allowEmpty: false

Podman Quadlet Units

PROPOSED — quadlet (WG-PROPOSAL-02)

hivemq.container

[Unit]
Description=HiveMQ 4 MQTT broker
After=network-online.target

[Container]
Image=docker.io/hivemq/hivemq4:4.52.0
PublishPort=${MQTT_PORT}:1883
PublishPort=${CONSOLE_PORT}:8080

[Service]
Environment=MQTT_PORT=1883
Environment=CONSOLE_PORT=8080
Restart=always

[Install]
WantedBy=default.target

Container Images

Image Reference
docker.io/hivemq/hivemq4:4.52.0

License

Apache-2.0