A modular framework for monitoring distributed infrastructure and services.
This repo includes collectors, scrapers, utilities, and storage backend using CockroachDB to help track availability, logins, and other system events at scale. It is designed with flexibility in mind, so different data sources and storage layers can be swapped in easily.
-
Monitoring Utilities
check_ssh.pyβ checks SSH service availability on a given host.monitor_logins.pyβ tracks user login activity for auditing/security.
-
Scraper Framework
scraper/contains modular scrapers for collecting system/service metrics.
-
Monitoring Framework
monitoring/holds reusable monitoring logic, abstractions, and orchestrators.
-
Storage Backend
cockroachdb/for CockroachDB adapters.
-
Data Science Utilities
data_science/includes experimental/analysis scripts for collected metrics.
-
Misc & Utils
util/for helper functions.misc/for supporting scripts and notes.
- Language: Python 3.x
- Databases:
- CockroachDB (distributed SQL database)
- Utilities & Libraries:
- paramiko β SSH2 protocol library for Python (used in
check_ssh.pyand related monitoring scripts) sqlalchemypsycopg2
- paramiko β SSH2 protocol library for Python (used in
- Python 3.9+
- Access to CockroachDB
piporpipenvfor dependency management
git clone https://github.com/ylehilds/distributed-monitoring-systems.git
cd distributed-monitoring-systems/monitoring
pip install -r requirements.txtCheck SSH availability
python check_ssh.py --host myserver.com --port 22Monitor logins
python monitor_logins.pyRun all scrapers (example)
python -m scraper.run_allTip: Many scripts support
--helpfor parameters and usage.
.
βββ check_ssh.py # SSH monitoring script
βββ monitor_logins.py # Login monitoring script
βββ monitoring/ # Core monitoring framework
βββ scraper/ # Scraper modules
βββ mongo/ # MongoDB integration (optional)
βββ cockroachdb/ # CockroachDB integration (optional)
βββ data_science/ # Data exploration & analysis
βββ util/ # Shared helpers
βββ misc/ # Miscellaneous scripts
βββ requirements.txt # Current dependency list (paramiko)
βββ LICENSE
βββ README.md
- Infrastructure uptime monitoring (via SSH and service checks)
- Security auditing (login tracking and anomaly detection)
- Data collection pipelines for distributed systems
- Exploratory data analysis of service performance and usage trends
- CockroachDB schema + ingestion (
sqlalchemy/psycopg2) - Alerting/notifications (SNS/Slack webhooks)
- Dashboarding (Streamlit/Grafana)
- Add unit tests for collectors and parsers (e.g.,
pytest) - Mock network and DB layers for deterministic CI runs
This project is licensed under the Apache 2.0 License β see LICENSE for details.
Lehi Alcantara
π https://www.lehi.dev
βοΈ lehi@lehi.dev