monitoring (Add): mktxp RouterOS exporter scaffold, remove ER-X SNMP probe (lab/iac#139) #1715
No reviewers
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters!1715
Loading…
Reference in a new issue
No description provided.
Delete branch "mktxp-exporter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scaffold for lab/iac#139: a mktxp RouterOS exporter on mini for rb5009-a, rb5009-b and crs309. Draft for review. Do not merge before the router side of iac#139 exists: the
monitoringuser,api-sslwith the OpenBao leaf, and the*_MONITORING_PASSWORDkeys in OpenBaosecret/routeros-secrets. Until those exist, the ExternalSecret can't sync and the pod stays in ContainerCreating. Nothing else breaks.What it adds
clusters/mini/monitoring/resources/mktxp-exporter/, laid out likesnmp-exporter/(Deployment + Service + configMapGenerator):mktxp.conf: one entry per device plus[default]. Connects over api-ssl on 8729 withssl_certificate_verifyand hostname checks on, against/etc/lab-ca/root.crt. Collectors are chosen per iac#139: bgp, routing_stats, netwatch, certificate, routerboard, IPv6 firewall, monitor (SFP), PoE and public_ip are on; wireless and capsman are off. crs309 turns off the routing, firewall and DHCP collectors and turns on switch_port._mktxp.conf: the upstream 2.1.0 defaults, except routers are fetched in parallel with a 20s per-router and 25s total budget, which stays under the 30s scrape timeout.credentials.yaml: an ExternalSecret on theopenbaoClusterSecretStore, the same store therouteros-*-envsecrets use (vault-backendon mini is sealed). It renders onecredentials_fileYAML per device, with each password run throughtoJsonso special characters stay valid YAML.deployment.yaml: runs as uid 1000 with a read-only root filesystem. An init container copies the ConfigMap into an emptyDir, because mktxp rewrites its config files on start. The hostAliases match the iac routeros runners, since the device names aren't in DNS yet (iac#50).Also:
scrapes/mktxp-servicescrape.yaml: a VMServiceScrape with jobmini-mktxp, 60s interval and 30s timeout.generic-templates/trust-manager/helmrelease.yaml: addsmonitoringtotargetNamespaces, so trust-manager writes thelab-root-caConfigMap there.Removed
ubnt_routerSNMP probe and thesnmp-exporterit used, on both mini and portable (scrapes/router-scrape.yaml,snmp-exporter/, and their kustomization entries). The ER-X has been out of service since the 2026-11-16 cutover, so no data is lost. Nothing else used snmp-exporter.Not in this PR
Checks
kustomize build clusters/mini/monitoring/resourcesandflux build ks flux-system --path ./clusters/mini --dry-runboth pass.ghcr.io/akpw/mktxp:2.1.0, using the same read-only root, uid 1000, the copied config and toJson-style credentials that include",:and#. The config and credentials parsed, mktxp used the CA path (it failed on the empty test CA, as expected), and/metricswas served. Not tested against a real router: the router side doesn't exist yet.WIP: monitoring (Add): mktxp RouterOS exporter scaffold (lab/iac#139)to monitoring (Add): mktxp RouterOS exporter scaffold, remove ER-X SNMP probe (lab/iac#139)