Integrations
MiBee Steward stays focused on device discovery and inventory, but it ships official bridges to the surrounding observability ecosystem: Grafana dashboards for the metrics it exports, notification channels for the chat platforms your team already uses, and webhook examples for automation tools.
Grafana
MiBee exposes Prometheus metrics at /metrics (see the deployment guide for the Prometheus scrape config and bundled alert rules). The repo also ships five ready-to-import dashboards under deploy/grafana/:
| Dashboard | Contents |
|---|---|
mibee-overview |
General health: devices by status, scan runs, heartbeat outcomes, API request rate, DB size |
mibee-devices |
Device fleet: online/offline counts, online ratio, type distribution, per-agent report age |
mibee-heartbeat |
Heartbeat health: outcome rates, failure share, p50/p95 probe latency by method |
mibee-probes |
Synthetic probes: up/down state by target, success ratio, probe duration, certificate expiry days |
mibee-scanner |
Scanner activity: run rates, duration quantiles, hosts discovered, scanner table growth |
Import via provisioning (recommended)
Mount the whole deploy/grafana/ directory into your Grafana container/host:
# docker-compose.yml fragment
volumes:
- ./deploy/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./deploy/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./deploy/grafana/dashboards:/var/lib/grafana/dashboards:ro
The bundled datasource provisioning expects Prometheus at http://prometheus:9090, edit deploy/grafana/provisioning/datasources/prometheus.yml if yours lives elsewhere. Dashboards appear in the MiBee folder on startup.
Manual import
Grafana → Dashboards → Import → paste the JSON file contents → select your Prometheus datasource.
Notification Channels
Notification rules (event → channel, see Web UI → Settings → Notifications) can deliver to six channel types:
| Type | Config fields | Auth |
|---|---|---|
webhook |
url, optional headers map, optional format (raw | alert, default raw), optional source (alert format only) |
Custom headers (e.g. your receiver's token) |
email |
SMTP host/port/username/password, from, to |
SMTP AUTH |
feishu |
url, optional secret |
Feishu custom-bot HMAC signature (enable signature verification on the bot and paste the secret) |
wecom |
url |
none (the webhook URL is the credential, treat it as secret) |
telegram |
bot_token, chat_id |
Bot API token |
discord |
url, optional username |
none (webhook URL is the credential) |
The four chat-platform channels are "formatted webhooks": MiBee translates each event into the platform's message format (a text message combining the subject and details). Use the generic webhook type when you want structured JSON instead. It has two payload formats:
raw (default) — Steward's own payload shape, unchanged:
{
"subject": "Device Lost: cam-01",
"body": "Device: cam-01\nIP: 192.168.1.133\n...",
"metadata": {
"event_type": "device_lost",
"device_name": "cam-01",
"ip_address": "192.168.1.133",
"mac_address": "...",
"device_type": "camera",
"detected_at": "2026-08-22T00:02:43Z"
}
}
alert — a receiver-agnostic alert envelope for external alert centers (dedup, cooldown, escalation and fan-out become the receiver's job):
{
"type": "device_lost",
"severity": "error",
"title": "Device Lost: cam-01",
"body": "Device: cam-01\nIP: 192.168.1.133\n...",
"source": "mibee-steward",
"source_ref": "aa:bb:cc:dd:ee:ff",
"tags": { "device_name": "cam-01", "ip_address": "192.168.1.133", "mac_address": "aa:bb:cc:dd:ee:ff", "device_type": "camera" },
"resolved": false,
"dedup_key": "mibee-steward/device_lost/aa:bb:cc:dd:ee:ff",
"occurred_at": "2026-08-22T00:02:43Z"
}
Semantics of the envelope:
typeis the change event type (device_lost,device_recovered,device_added,device_changed,speaks_with_new,listen_port_added), the probe liveness pair (probe_failedafter 3 consecutive probe failures on a (target, vantage) track,probe_recoveredon the first success after;tags.vantagenames the track), or the agent fleet pair (agent_offlinewhen an agent'slast_report_atis stale past 10 minutes,agent_recoveredon its next report), or the quality-episode pair (quality_degraded/quality_recovered, #720 — attributed 15-minute window drops;resolvedpairs them like other recoveries); a test send poststype: "test".severitymaps deterministically:device_lost,probe_failed,agent_offlineandquality_degraded→error; recoveries (*_recovered, includingquality_recovered) and additions →info; identity changes, new conversations and new listen ports →warning. Steward never emitscritical— escalation belongs to the receiving alert center.resolvedistruefor*_recoveredevents, and such events carry the samededup_keyas the event they resolve (the key's type segment is the firing event, e.g.device_recovered→ key…/device_lost/<ref>), so receivers pair firing/resolved the way Alertmanager pairs group keys.source_refis the stable device identity (MAC, falling back to IP, then name) anddedup_keyis<source>/<type>/<source_ref>— receivers that key cooldown/dedup on it get stable per-device windows for free.sourcedefaults tomibee-stewardand can be overridden per channel (multiple Steward instances feeding one receiver).
This is a deliberately generic contract: no receiver is special-cased in Steward. Any alert center that ingests {type, severity, title, body, dedup_key, resolved} JSON works — for example a self-hosted MiBeeBell instance: register an ingest token with default_source: mibee-steward, point the channel URL at http://<bell>:9080/api/ingest/webhook/<token>, set the format to alert, and Steward events flow through Bell's dedup/cooldown/silence pipeline out to Bell's channels (WeCom/DingTalk/Feishu/Telegram/SMTP/…).
Every channel has a Test send button in the UI (Settings → Notifications → channel row), use it to verify delivery before wiring rules.
Automation Examples
Ready-made examples live under deploy/integrations/:
- n8n,
n8n/mibee-device-alerts.json: an importable workflow that receives the generic-webhook payload, filtersdevice_lost, and hands off to your choice of destination node (chat, ticketing, …). - Home Assistant,
homeassistant/mibee-device-webhook.yaml: awebhooktrigger automation that pushes a persistent notification when a device is lost, plus arest_commandfor triggering MiBee scans from HA.
The pattern is the same everywhere: create a webhook channel pointing at your tool's inbound URL, bind a notification rule to it, and consume metadata.event_type for routing.