Skip to content

CICD-355 · Loki configuration validation ​

Encyclopedia · Observability and SRE pipelines · All snippets

Previous · CICD-354 · Next · CICD-356

1. Where it fits ​

  • Placement CI config validation.
  • Prerequisites staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
loki -config.file=monitoring/loki.yaml -verify-config=true

3. How it works ​

The Loki binary verifies the referenced configuration using the same schema version you expect to deploy. Check any environment substitutions and permissions independently.

4. Verify the result ​

Use the same Loki binary and supply placeholder environment variables if config expansion is turned on.

Validation syntax-validated (Bash parse). Status definitions.