akin-ozer avatar

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-code

Installs 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.alloy for the Alloy pipeline and examples/grafana-alloy-daemonset.yaml for 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
1yzlnew avatartikz-flowchartyzlnew/infra-skillsCreates professional TikZ flowcharts with standardized themes, including Google Material-like and Anthropic-inspired options.278skills.sh installs
2hoangsonww avataranomaly-alerthoangsonww/claude-code-agent-monitor>0skills.sh installs
3hoangsonww avatarcost-breakdownhoangsonww/claude-code-agent-monitor>0skills.sh installs
4hoangsonww avatardaily-standuphoangsonww/claude-code-agent-monitor>0skills.sh installs
5hoangsonww avatardata-exporthoangsonww/claude-code-agent-monitor>0skills.sh installs
6hoangsonww avatarhealth-checkhoangsonww/claude-code-agent-monitor>0skills.sh installs