RouterOS alerts and dashboard (mktxp) #1722

Open
opened 2026-11-17 21:46:10 +00:00 by ginjiruu · 0 comments
Owner

Follow-up to lab/iac#139 (router monitoring is live: mktxp on mini, vmagent job mini-mktxp, about 2,100 samples per scrape from rb5009-a, rb5009-b and crs309).

Alerts (vmalert rules next to the other monitoring rules)

  • Device unreachable: mktxp_system_uptime absent for a router, or the mini-mktxp target down.
  • BGP session to Cilium (mini-01, AS 64516) not established on either router.
  • Routes advertised to Cilium above 0 (feeds lab/iac#125 BGP hardening). mktxp counts these with a count-only query on /routing/bgp/advertisements.
  • Health: temperature or voltage out of range. PSU state where the board reports it.
  • Certificate (www-ssl / api-ssl leaf) expires in under 14 days. This backs up the renewal path.
  • mktxp login failures for a device, which mean a monitoring slot rotation went wrong (lab/iac routeros/modules/monitoring, ADR-0011).
  • VRRP: both routers master, or neither (lab/iac#128).
  • PPPoE public IP change. Info level: it changes on every failover.

Dashboard

Start from mktxp's upstream Grafana dashboards. Per device: interfaces, SFP, firewall counters by rule (the label carries the [tf:<key>] comment), VRRP state, PPPoE address, DHCP leases (join both routers on MAC; only the VRRP master serves).

Not in scope

Firewall rules that have never matched (zero bytes) emit no series in mktxp 2.1.0, so "the catch-all drop stopped counting" can't be alerted on yet. That is lab/iac#.

Follow-up to lab/iac#139 (router monitoring is live: mktxp on mini, vmagent job `mini-mktxp`, about 2,100 samples per scrape from rb5009-a, rb5009-b and crs309). ## Alerts (vmalert rules next to the other monitoring rules) - Device unreachable: `mktxp_system_uptime` absent for a router, or the mini-mktxp target down. - BGP session to Cilium (mini-01, AS 64516) not established on either router. - Routes advertised to Cilium above 0 (feeds lab/iac#125 BGP hardening). mktxp counts these with a count-only query on `/routing/bgp/advertisements`. - Health: temperature or voltage out of range. PSU state where the board reports it. - Certificate (www-ssl / api-ssl leaf) expires in under 14 days. This backs up the renewal path. - mktxp login failures for a device, which mean a monitoring slot rotation went wrong (lab/iac routeros/modules/monitoring, ADR-0011). - VRRP: both routers master, or neither (lab/iac#128). - PPPoE public IP change. Info level: it changes on every failover. ## Dashboard Start from mktxp's upstream Grafana dashboards. Per device: interfaces, SFP, firewall counters by rule (the label carries the `[tf:<key>]` comment), VRRP state, PPPoE address, DHCP leases (join both routers on MAC; only the VRRP master serves). ## Not in scope Firewall rules that have never matched (zero bytes) emit no series in mktxp 2.1.0, so "the catch-all drop stopped counting" can't be alerted on yet. That is lab/iac#.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/clusters#1722
No description provided.