loki-logging
Skill by sickn33
Configures Grafana Loki for log aggregation and analysis, with Promtail, LogQL and Grafana setup guidance. Written for DevOps teams running Docker or Kubernetes. It is a docs-only skill and warns that its 2.9 examples need migration.
Install loki-logging
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/loki-logging ~/.claude/skills/loki-loggingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/loki-logging ~/.gemini/antigravity-cli/skills/loki-loggingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The loki-logging skill gives an AI assistant guidance on configuring Grafana Loki for log aggregation and analysis. It covers a Docker Compose deployment, Loki and Promtail configuration files, a Kubernetes Helm install and Promtail DaemonSet, and LogQL queries for filtering and metrics. It also covers Grafana data source setup, recording rules and alerting examples.
The source is a docs-only import adapted from a community repository under the MIT license. It states that guidance runs against real environments, so the target, blast radius and rollback plan should be confirmed first. It warns that the 2.9 examples are historical, that Promtail reached end of life on March 2, 2026, and that auth-disabled Loki should stay behind an authenticated gateway. It is aimed at teams that want a lighter-weight alternative to ELK.
Written from the project's SKILL.md and checked against it.
What it can do
- Loki configurationCovers a Loki config file with storage, schema, limits and retention settings.
- Docker deploymentShows a Docker Compose setup for Loki, Promtail and Grafana.
- Promtail configurationGives scrape configs for system, Docker and application logs with pipeline stages.
- Kubernetes deploymentIncludes a Helm install command and a Promtail DaemonSet example.
- LogQL queriesCovers label filters, log pipelines, metric queries and aggregations.
- Grafana integrationShows data source provisioning and a logs dashboard panel.
- Recording rules and alertingProvides Loki rule examples for error rates and high error alerts.
What you need
- Docker or Kubernetes
- Grafana
- Promtail or another log shipper
- Platform CLIs such as kubectl, helm, terraform, git and CI runners
- Authorized access to the target environment
Try asking
- Write a Loki config with 7 days of retention for a single Docker host.
- Build a LogQL query for error counts per service over the last hour.
- Show me a Promtail config that scrapes Docker container logs.
Good to know
- Docs-only import; helper scripts and templates are not bundled.
- Examples target Loki 2.9 and schema v11 and must be migrated before production use.
- Promtail reached EOL on March 2, 2026; use Grafana Alloy or another supported client for new deployments.
- Never deploy to production without explicit approval.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/loki-logging/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to loki-logging
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
loki-logging: common questions
Is Promtail still supported?
The source says Promtail reached end of life on March 2, 2026, and recommends Grafana Alloy or another supported client for new deployments.
Can I paste the example configs into production?
No. The source says the 2.9 and schema v11 examples are historical and must be migrated to the installed Loki or chart version first.
Does Docker log discovery need extra access?
The source says Docker discovery needs approved socket access, which the Compose fragment does not include, and that it should not be granted blindly.
How do I install loki-logging?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is loki-logging free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is loki-logging safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to loki-logging?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
