A Go-based monitoring system for Redis instances, designed to work with Magento environments. This tool provides real-time metrics collection, performance monitoring, and alerting capabilities for Redis servers.
- Real-time Redis metrics collection
- Memory usage statistics
- Connection monitoring
- Cache hit/miss rates
- HTTP API for metrics retrieval
- Concurrent monitoring of multiple Redis instances
- Configurable alerting system
- Go 1.21 or higher
- Redis server (tested with Redis 6.x, 7.x)
git clone https://github.com/Gahyunlee23/redis-monitor.git
cd redis-monitor
go mod tidyredis-monitor/
├── cmd/
│ └── monitor/
│ └── main.go # Application entry point
├── internal/
│ ├── collector/ # Redis metrics collection
│ ├── models/ # Data structures
│ └── server/ # HTTP server implementation
├── config/ # Configuration files
└── tests/ # Test files
- Configure Redis connection in
config/config.yaml:
redis:
host: localhost
port: 6379- Run the monitoring system:
go run cmd/monitor/main.go- Access metrics via HTTP endpoints:
GET /metrics/memory # Memory statistics
GET /metrics/cache # Cache hit/miss rates
GET /metrics/connections # Connection information
To start development:
- Fork the repository
- Create a feature branch
- Submit a pull request
Run tests with:
go test ./...MIT License - see LICENSE file for details