How ryuuen8/mgkk-monitoring-tool works
MGKK Monitoring Tool is a network-infrastructure monitoring application. Operators sign in, manage inventory and profiles, then schedule device checks; workers collect reachability and telemetry, persist snapshots and publish metrics/events for the UI, Prometheus and alerting. Distinct capabilities include subnet discovery, topology, audit, syslog/traps and alert silences. The map combines the README’s documented capabilities with excerpted calls and SOURCE INDEX references; unsampled implementation details and some integrations are shown only where documented.
Main entry points: worker.py Poll worker · App.tsx Monitoring UI · v1.py Inventory and feature routes · events.py Live event service
Components 29
Operator experience
- Monitoring UI
frontend/src/App.tsx - Browser authentication
frontend/src/auth/AuthProvider.tsx - Device and topology views
frontend/src/components/DeviceDetailV1.tsx - Discovery queue
frontend/src/components/DiscoveryQueue.tsx - Alerts and audit
frontend/src/components/AlertsCenter.tsx - Typed API client
frontend/src/api/client.ts
API and inventory
- FastAPI application
backend/app/main.py - Inventory and feature routes
backend/app/api/routes/v1.py - Inventory data access
backend/app/crud/devices.py - PostgreSQL inventory
backend/app/db/session.py
Polling and discovery
- Device profiles
backend/app/profiles/schema.py - Poll scheduling
backend/app/scheduling.py - Poll worker
backend/app/worker.py - Collector contracts
backend/app/collectors/base.py - Generic SNMP collector
backend/app/collectors/generic_snmp/collector.py - Cisco collector
backend/app/collectors/cisco/collector.py - Profile-driven collection
backend/app/collectors/profile_engine.py - Network discovery
backend/app/services/discovery.py
Telemetry and events
- Topology computation
backend/app/services/topology.py - Prometheus metrics
backend/app/services/prometheus.py - Live event service
backend/app/services/events.py - Syslog receiver and parser
backend/app/syslog/receiver.py - SNMP trap listener
backend/app/traps/listener.py
External integrations
- Keycloak
- Alertmanager
- Prometheus server
- Redis event transport
Other components
- Network operator
- Managed network devices
Connections 34
- Network operator → Monitoring UI: uses
README.md - Monitoring UI → Browser authentication: authenticates through
frontend/src/App.tsx - Browser authentication → Keycloak: signs in
README.md - Monitoring UI → Device and topology views: renders
frontend/src/App.tsx - Monitoring UI → Discovery queue: renders
frontend/src/App.tsx - Monitoring UI → Alerts and audit: renders
frontend/src/App.tsx - Device and topology views → Typed API client: requests data
frontend/src/components/DeviceDetailV1.tsx - Discovery queue → Typed API client: requests data
frontend/src/components/DiscoveryQueue.tsx - Alerts and audit → Typed API client: requests data
frontend/src/components/AlertsCenter.tsx - Typed API client → FastAPI application: calls HTTP API
README.md - FastAPI application → Inventory and feature routes: mounts routes
backend/app/main.py - Inventory and feature routes → Inventory data access: accesses inventory
- Inventory data access → PostgreSQL inventory: reads and writes
README.md - Inventory and feature routes → Network discovery: starts discovery
- Inventory and feature routes → Topology computation: serves topology
- Poll scheduling → Poll worker: enqueues device jobs
README.md - Poll worker → PostgreSQL inventory: loads and saves state
backend/app/worker.py - Poll worker → Device profiles: resolves profile
backend/app/worker.py - Poll worker → Collector contracts: dispatches collection
backend/app/worker.py - Poll worker → Generic SNMP collector: dispatches SNMP
backend/app/worker.py - Poll worker → Cisco collector: dispatches Cisco
backend/app/worker.py - Poll worker → Profile-driven collection: collects profile metrics
backend/app/worker.py - Profile-driven collection → Generic SNMP collector: uses SNMP operations
backend/app/collectors/profile_engine.py - Poll worker → Managed network devices: polls
README.md - Poll worker → Prometheus metrics: publishes metrics
backend/app/worker.py - Prometheus server → Prometheus metrics: scrapes
README.md - Poll worker → Live event service: publishes events
backend/app/worker.py - Live event service → Redis event transport: uses transport
README.md - FastAPI application → Live event service: serves live events
backend/app/main.py - Syslog receiver and parser → Live event service: emits events
- SNMP trap listener → Live event service: emits events
- Prometheus server → Alertmanager: routes alerts
README.md - Inventory and feature routes → Alertmanager: manages silences
- Topology computation → PostgreSQL inventory: combines stored topology