Skip to content

vlamay/devops-stack

Repository files navigation

πŸš€ DevOps Observability Stack

CI/CD License: MIT Platform Kubernetes Security

Production-ready monitoring and observability stack with automated setup

Quick Start β€’ Features β€’ Architecture β€’ Docs


🎯 What This Solves

Setting up a complete observability stack typically takes days. This project delivers a production-ready monitoring solution in under 5 minutes with:

  • βœ… Pre-configured Grafana dashboards
  • βœ… Multi-service monitoring (Docker, Kubernetes, System)
  • βœ… Automated alerting setup
  • βœ… Log aggregation with Loki
  • βœ… CI/CD pipeline included

Perfect for: Startups, DevOps teams, SaaS companies needing instant observability.


✨ Key Features

Feature Description Business Value
πŸš€ One-Command Deploy ./start.sh and you're live 95% time savings
πŸ“Š Pre-built Dashboards 15+ ready-to-use Grafana dashboards Zero config needed
πŸ”” Smart Alerting Multi-channel notifications (Gotify, Slack) Faster incident response
πŸ”’ Security Built-in Trivy scanning, secret detection Production-grade security
πŸ€– GitHub Actions Automated CI/CD pipeline Continuous reliability

πŸš€ Quick Start

Prerequisites

  • Docker & Docker Compose
  • 4GB RAM minimum
  • Linux/macOS (Windows via WSL2)

Installation

# Clone the repository
git clone https://github.com/vlamay/devops-stack.git
cd devops-stack

# Start the entire stack
./start.sh

# Access services:
# Grafana:    http://localhost:3000 (admin/admin)
# Prometheus: http://localhost:9090
# Loki:       http://localhost:3100

That's it! Full observability in under 5 minutes.


πŸ“Š Included Services

πŸ“ˆ Monitoring

  • Prometheus - Metrics collection
  • Grafana - Visualization & dashboards
  • Node Exporter - System metrics
  • cAdvisor - Container metrics

πŸ“ Logging

  • Loki - Log aggregation
  • Promtail - Log shipping
  • Grafana - Log visualization

πŸ”” Alerting

  • Alertmanager - Alert routing
  • Gotify - Push notifications
  • Slack/PagerDuty integration

πŸ”’ Security

  • Trivy - Vulnerability scanning
  • Secret detection
  • Security dashboards

πŸ—οΈ Architecture

graph TB
    subgraph "User Interface"
        G[Grafana<br/>Dashboards & Alerts]
    end
    
    subgraph "Data Collection"
        P[Prometheus<br/>Metrics Storage]
        L[Loki<br/>Log Storage]
        AM[Alertmanager<br/>Alert Routing]
    end
    
    subgraph "Data Sources"
        NE[Node Exporter<br/>System Metrics]
        CA[cAdvisor<br/>Container Metrics]
        PT[Promtail<br/>Log Shipper]
    end
    
    subgraph "Notifications"
        GF[Gotify<br/>Push Notifications]
        SL[Slack<br/>Team Chat]
        TG[Telegram<br/>Mobile Alerts]
    end
    
    G --> P
    G --> L
    P --> NE
    P --> CA
    L --> PT
    AM --> GF
    AM --> SL
    AM --> TG
    P --> AM
Loading

πŸ“– Documentation


🎨 Screenshots

Grafana Dashboard

Grafana Dashboard

Alert Configuration

Alerts


πŸ’Ό Use Cases

Startups & Small Teams

  • Quick observability setup
  • Cost-effective monitoring
  • No dedicated DevOps needed

DevOps Teams

  • Standardized monitoring stack
  • CI/CD integration ready
  • Production deployment template

Development Environments

  • Local monitoring for dev/test
  • Mirror production setup
  • Debug performance issues

πŸ”§ Advanced Configuration

Custom Dashboards

# Add custom dashboards to:
grafana/provisioning/dashboards/custom/

Alert Rules

# Edit Prometheus rules:
prometheus/alerts/custom-rules.yml

Integrations

  • Slack: Configure webhook in alertmanager.yml
  • PagerDuty: Add integration key
  • Custom webhooks: Supported

πŸ“Š Metrics & Results

Before This Stack:

  • ❌ 2-3 days setup time
  • ❌ Complex configuration
  • ❌ Missing dashboards
  • ❌ No alerting

After This Stack:

  • βœ… 5 minutes deployment
  • βœ… Zero configuration
  • βœ… 15+ pre-built dashboards
  • βœ… Multi-channel alerting

ROI: 95% time savings = $2,000+ value for typical DevOps team


πŸ› οΈ Development

Local Development

# Start development environment
docker-compose -f docker-compose.dev.yml up -d

# Run tests
./scripts/run-tests.sh

# Security scan
./scripts/security-scan.sh

Production Deployment

# Deploy to production
./scripts/deploy-production.sh

# Monitor deployment
./scripts/monitor-deployment.sh

🀝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open Pull Request

πŸ“„ License

MIT License - see LICENSE file.


🌟 Star History

Star History Chart


πŸ™ Support

If this project saved you time, consider:

  • ⭐ Starring the repository
  • πŸ› Reporting bugs
  • πŸ’‘ Suggesting features
  • πŸ“’ Sharing with colleagues

Built with ❀️ by Vladimir Maydanov

LinkedIn β€’ Email

About

Production-ready DevOps stack with monitoring, security, and automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published