loki-config-generator

Generate Grafana Loki YAML configurations for monolithic, simple-scalable, and microservices deployments.

7|3|Updated May 4, 2026
One-click install
npx skills add https://github.com/nopperabbo/codebuddy2api --skill loki-config-generator-nopperabbo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: loki-config-generator
Source: https://github.com/nopperabbo/codebuddy2api/tree/main/opencode-config/skills/_archived/loki-config-generator
Command: npx skills add https://github.com/nopperabbo/codebuddy2api --skill loki-config-generator-nopperabbo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Generates production-ready Grafana Loki configurations for multiple deployment modes with best-practice defaults, reducing manual config effort and deployment risk.

Core Features & Use Cases

  • Generates Loki configuration files for monolithic, simple scalable, and microservices deployments.
  • Supports S3, GCS, Azure, and filesystem storage backends with TSDB/v13 schema.
  • Includes options for advanced features like Thanos storage, zone awareness, time sharding, Ruler, and OTLP integration.
  • Use case: Quickly bootstrap complex Loki deployments across environments from a single command.

Quick Start

Run the Loki config generator with your chosen mode and storage to output a ready-to-deploy YAML config.

Frequently Asked Questions about loki-config-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a production-ready Loki configuration for simple-scalable deployment?

Generate a production-ready Loki configuration by specifying the simple-scalable deployment mode to output a ready-to-deploy YAML file with best-practice defaults. This reduces manual configuration effort and deployment risk.

What's the best way to configure Loki with S3 storage and the TSDB schema?

Configure Loki with S3 storage by selecting the S3 backend during generation to output a YAML file enforcing the tsdb/v13 Loki schema. This ensures production-ready time-series database storage.

Can I use Loki with Thanos storage and zone awareness enabled?

Yes, Loki can be configured with optional Thanos storage and zone awareness. The generator outputs a YAML file enabling these advanced features to distribute query load and increase fault tolerance.

Does the Loki config generator support Azure and GCS filesystem backends for microservices?

Yes, the Loki config generator supports Azure, GCS, S3, and filesystem backends for monolithic, simple-scalable, and microservices deployments. It outputs a YAML configuration tailored to the chosen backend and mode.

How do I add a Ruler and OTLP integration to my Loki YAML config?

Add a Ruler and OTLP integration by enabling these optional features during generation to output a Loki YAML config with alerting and OpenTelemetry Protocol ingestion capabilities included.

When do I need to use time sharding in a Loki microservices deployment?

Use time sharding in a Loki microservices deployment to distribute query processing across multiple instances by time ranges. The generator outputs a YAML configuration with time sharding enabled to improve query performance.