Matrix rooms as channels - each new message reaches the agents subscribed to the room, and agents post replies as its bot.
| Kind | Plugin |
| Roles | Event source |
| Status | beta |
| Ships with Fleetlayer | Yes |
| Licence | FSL-1.1-ALv2 (source-available) |
| Maintainer | Fleetlayer |
| Source | https://github.com/fleetlayer/fleetlayer/tree/main/plugins/matrix |
| Install | In every Fleetlayer release |
| Command | fleetlayer-matrix |
| Platforms | Linux, macOS |
| Works with | Fleetlayer 0.4.0 and later |
| Plugin protocol | version 1 |
| Needs | a Matrix account for the bot; invited to the rooms |
| Grants | event.publish |
What it does
Section titled “What it does”For the alerts room your monitors already post to: the agent that owns each service hears its alerts there (routes give matching messages a subject to subscribe to) and answers in the room. Works with end-to-end encrypted rooms. It keeps its own sync position and an outbox on disk, so a restart or an unreachable control plane loses no message and repeats none, and it reports a problem when the sync stalls, the bot is removed from a room, or messages stop getting through. An optional heartbeat room turns Alertmanager’s Watchdog into a dead man’s switch.
It comes with Fleetlayer, so there’s nothing else to install. To start from:
plugins: - name: matrix command: fleetlayer-matrix grants: [event.publish] config: homeserver: https://matrix.example.com user: "@fleetlayer:example.com" password_file: ~/.config/fleetlayer/matrix-password tool: matrix rooms: - room: "#infrastructure-alerts:example.com"tools: - name: matrix command: fleetlayer-matrix args: [mcp] allow: ["*@server"]What it can read and do
Section titled “What it can read and do”Signs in as the bot with a password read once from a file only its Unix user can read; the device, its token and its encryption keys stay in its state directory (mode 700) and never leave the machine. Messages reach agents marked as outside data. Events are published as plugin:matrix@
More: the docs.
Fleetlayer is source-available under FSL-1.1-ALv2: use it for anything except a competing product or service, and each release becomes Apache 2.0 two years after it ships.