Support scripts for GitLab health checks, DB, Redis, Sidekiq, and backup verification.
836
A comprehensive collection of Ruby and Bash scripts for GitLab administration, monitoring, and troubleshooting tasks. This Docker image provides ready-to-use tools for GitLab health checking, database analysis, Redis monitoring, Sidekiq statistics, and backup verification.
# Health check (no token required)
docker run --rm dbdaryl/gitlab-support-scripts gitlab-health-check https://gitlab.example.com
# Database analysis (requires admin token)
docker run --rm dbdaryl/gitlab-support-scripts gitlab-db-analyzer https://gitlab.example.com glpat-xxxxxxxxxxxxxxxxxxxx
| Script | Purpose | Auth Required |
|---|---|---|
gitlab-health-check | Instance health, readiness, liveness checks | No |
gitlab-db-analyzer | Database performance and slow query analysis | Yes |
gitlab-redis-monitor | Redis metrics, memory usage, key patterns | Yes |
gitlab-sidekiq-stats | Queue analysis, job statistics, worker performance | Yes |
gitlab-backup-verify | Backup integrity and structure validation | No |
docker run --rm dbdaryl/gitlab-support-scripts gitlab-health-check https://gitlab.example.com
# Database performance
docker run --rm dbdaryl/gitlab-support-scripts \
gitlab-db-analyzer https://gitlab.example.com glpat-your-token-here
# Redis monitoring
docker run --rm dbdaryl/gitlab-support-scripts \
gitlab-redis-monitor https://gitlab.example.com glpat-your-token-here
# Sidekiq queue analysis
docker run --rm dbdaryl/gitlab-support-scripts \
gitlab-sidekiq-stats https://gitlab.example.com glpat-your-token-here
# Mount your backup directory and verify
docker run --rm -v /path/to/backups:/backups \
dbdaryl/gitlab-support-scripts gitlab-backup-verify -d /backups -v
# Get shell access for multiple commands
docker run -it --rm dbdaryl/gitlab-support-scripts bash
Create a .env file:
GITLAB_URL=https://your-gitlab.com
GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx
Run with docker-compose:
# One-off health check
docker-compose run --rm gitlab-support-scripts gitlab-health-check
# Start continuous monitoring
docker-compose --profile monitoring up -d gitlab-monitor
# Run all tests
docker run --rm dbdaryl/gitlab-support-scripts --test
# Run specific test suite
docker run --rm dbdaryl/gitlab-support-scripts run-tests health-check
MIT License - Free for commercial and personal use
Tags: gitlab, monitoring, administration, devops, ruby, health-check, database, redis, sidekiq, backup
Content type
Image
Digest
sha256:edd9ca241โฆ
Size
40.7 MB
Last updated
about 1 year ago
docker pull dbdaryl/gitlab-support-scripts