
Loki Config Generator
Generates production Grafana Loki configs across monolithic, simple scalable, and microservices modes with S3, GCS, Azure, or filesystem backends. Includes a Python script that handles the tedious bits like TSDB schema setup, OTLP ingestion mapping, and retention policies, plus manual workflows when you need fine-grained control. Covers Loki 3.6 features including the new Thanos storage client and horizontal compactor modes. The documentation lookup guidance is solid, it knows when to hit Context7 for bleeding-edge features versus using the built-in references. Worth noting that it explicitly steers you away from deprecated Promtail toward Grafana Alloy, which will save you a migration headache down the road.
- skills.sh installs
- 622
- GitHub stars
- 337
- last updated
- Aug 21, 2026
Install
$ npx -y skills add akin-ozer/cc-devops-skills --skill loki-config-generator --agent claude-codeInstalls into .claude/skills of the current project.
Files
Loki Configuration Generator
Overview
Generate production-ready Grafana Loki server configurations with best practices. Supports monolithic, simple scalable, and microservices deployment modes with S3, GCS, Azure, or filesystem storage.
Current Stable: Loki 3.6.2 (November 2025) Important: Promtail deprecated in 3.4 - use Grafana Alloy instead. See
examples/grafana-alloy.alloyfor the Alloy pipeline andexamples/grafana-alloy-daemonset.yamlfor the Kubernetes deployment.
When to Use
Invoke when: deploying Loki, creating configs from scratch, migrating to Loki, implementing multi-tenant logging, configuring storage backends, or optimizing existing deployments.
Generation Methods
Method 1: Script Generation (Recommended)
Use scripts/generate_config.py for consistent, validated configurations:
# Simple Scalable with S3 (production)
python3 scripts/generate_config.py \
--mode simple-scalable \
--storage s3 \
--bucket my-loki-bucket \
--region us-east-1 \
--retention-days 30 \
--otlp-enabled \
--output loki-config.yaml
Sponsors
Details
- Repository
- github.com/akin-ozer/cc-devops-skills
- Categories
- DevOps & CI/CD, Automation & Workflows, Cloud & Infrastructure
- First seen
- Jun 3, 2026
More from akin-ozer/cc-devops-skills
All 31- Ansible Validator1.6K
- Terragrunt Generator1.2K
- Ansible Generator907
- K8s Debug887
- Jenkinsfile Generator862
- Dockerfile Validator786
- Dockerfile Generator741
- Bash Script Validator734
- Gitlab Ci Validator725
- K8s Yaml Validator715
- Helm Validator712
- Bash Script Generator710
- Jenkinsfile Validator706
- Terragrunt Validator703
- K8s Yaml Generator694
- Azure Pipelines Generator692
- Github Actions Validator686
- Gitlab Ci Generator686
- Github Actions Generator684
- Terraform Validator681
- Azure Pipelines Validator680
- Terraform Generator680
- Helm Generator674
- Makefile Validator671