Skip to content

Tarbox/Monitoring-Automation-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 Monitoring & Automation Lab (DevOps Portfolio Project)

🚀 Overview

This project demonstrates a production-like monitoring, logging, and automation infrastructure built in a home lab environment.

It simulates a real-world setup used by System Administrators and DevOps engineers.


🏗️ Infrastructure Overview

This project demonstrates a full observability stack including:

  • Metrics collection (Prometheus)
  • Centralized logging (Loki + Promtail + rsyslog)
  • Alerting system (Alertmanager)
  • Visualization (Grafana)

Infrastructure


📸 Screenshots

📊 Metrics Dashboard

CPU, Memory, Disk, Network

Metrics

Nginx metrics

Nginx


📜 Logs (Loki)

Centralized logs from all servers

Logs


🚨 Alerts

Alertmanager + Telegram notifications

Alerts


🖥️ Infrastructure

VM Role
Router-VM NAT, firewall, routing
Web-VM nginx server
DNS-VM bind9
Backup-VM backup
Monitoring-VM monitoring stack

⚙️ Monitoring Stack

Metrics

  • Prometheus
  • node_exporter
  • nginx_exporter
  • blackbox_exporter

Visualization

  • Grafana dashboards
  • Custom dashboards with variables

📜 Logging

  • rsyslog (centralized logging)
  • Loki (log storage)
  • Promtail (log shipping)

🚨 Alerting

  • Alertmanager
  • Telegram notifications

🤖 Automation

Custom bash scripts:

check_disk.sh
check_memory.sh
check_services.sh
router_health.sh
backup.sh
install_node_exporter.sh

🔐 Security

  • nginx reverse proxy
  • HTTPS (self-signed)
  • HTTP → HTTPS redirect

🌐 Networking

  • Private subnet: 192.168.100.0/24

  • Router VM:

    • NAT (masquerade)
    • Port forwarding (DNAT)
    • nftables firewall

📊 Observability

This project implements:

  • Metrics → Prometheus
  • Logs → Loki
  • Alerts → Alertmanager

📁 Project Structure

prometheus/     → monitoring config
grafana/        → dashboards & datasources
loki/           → logging stack
rsyslog/        → centralized logging
scripts/        → automation
nginx/          → reverse proxy

🧠 Skills Demonstrated

  • Linux system administration
  • Networking (NAT, firewall, routing)
  • Monitoring systems
  • Log aggregation
  • Alerting systems
  • Automation (bash)
  • Observability design

🚀 Setup Guide

See:

docs/setup.md

🔮 Future Improvements

  • Docker-based deployment
  • Ansible automation
  • VPN access
  • CI/CD for configs

📌 Summary

This project demonstrates a complete observability stack with:

  • monitoring
  • logging
  • alerting
  • automation

Built to reflect real-world infrastructure practices.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages