operating-loki-deployments-and-ingestion

operating-loki-deployments-and-ingestion is a skill for Claude Code, Codex from talkops-ai/talkops-mcp. It costs 193 tokens per session (1,850 once invoked), scanned A, original, Apache-2.0.

An operations workflow for Grafana Loki, a log storage and search system, and its Kubernetes deployments. It covers ingestion problems, readiness, log deletion requests, OpenTelemetry or Alloy pipelines, and LokiStack configuration.

In plain words
What is it for?
Use it to troubleshoot ingestion limits, manage GDPR or personal-data deletions, tune log pipelines, and operate LokiStack resources on Kubernetes.
Why use it?
It helps explain why logs are being dropped, why a Loki service is unhealthy, or how privacy deletion requests move through the system. It also provides checks before making changes to a running cluster.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to troubleshoot ingestion limits, manage GDPR or personal-data deletions, tune log pipelines, and operate LokiStack resources on Kubernetes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/talkops-ai/talkops-mcp/operating-loki-deployments-and-ingestion
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add talkops-ai/talkops-mcp --skill operating-loki-deployments-and-ingestion
Clone the repo
git clone --depth 1 https://github.com/talkops-ai/talkops-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for operating-loki-deployments-and-ingestion

README.md
[![agentmods](https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/operating-loki-deployments-and-ingestion/github.svg)](https://agentmods.dev/skills/talkops-ai/talkops-mcp/operating-loki-deployments-and-ingestion)
Your own site
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/operating-loki-deployments-and-ingestion"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/operating-loki-deployments-and-ingestion/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for operating-loki-deployments-and-ingestion

Your own site · 80×15
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/operating-loki-deployments-and-ingestion"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/operating-loki-deployments-and-ingestion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 193 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00193 $0.01850
Opus 5.5 $0.00077 $0.00740
Sonnet 5.5 $0.00039 $0.00370
Haiku 4.5 $0.00019 $0.00185

Measured 11d ago against content hash ff9cadb8fe7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

operating-loki-deployments-and-ingestion scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/render_loki_architecture_config.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/loki-mcp-server/skills/operating-loki-deployments-and-ingestion/SKILL.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Operating Loki Deployments and Ingestion

Use this skill to operate, diagnose, size, and govern Grafana Loki 3.x deployments—covering ingestion drop remediation, Compactor GDPR/PII log deletion lifecycles, OTel/Alloy collector pipelines, and Kubernetes LokiStack (loki.grafana.com/v1) Custom Resources.

Operational Workflows

Workflow 1: Diagnose Cluster Health & Discarded Samples

  1. Read loki://system/health, loki://server/capabilities (checking allow_write before any mutation!), and references/alloy-promtail-otel-ingestion.md.
  2. Call loki_get_diagnostics(include_metrics=True, org_id=...) to inspect /ready, /config (runtime_config: compactor, limits_config, schema), and /metrics loki_discarded_samples_total by reason (cross-checking loki_analyze_volume when rate limits fire):
    • per_stream_rate_limit: Split monolithic {job="..."} streams by bounded service_name + namespace while keeping pod/container/node in structured_metadata.
    • rate_limited: Raise ingestion_rate_mb / ingestion_burst_size_mb or drop noisy logs at the collector.
    • max_global_streams_per_user: Move dynamic labels (pod, trace_id, ip) out of {} into structured_metadata.
    • line_too_long: Enable limits_config.max_line_size_truncate: true or collector truncation.
    • greater_than_max_sample_age / timestamp_too_old: Caused by reject_old_samples_max_age (168h default)—fix NTP skew, rewrite archival replay timestamps to ingestion time in OTel Collector (otlphttp /otlp) / Alloy while keeping original event time in payload/structured metadata, or raise reject_old_samples_max_age per tenant (unordered_writes: true handles out-of-order writes within max-age).

Workflow 2: Safe Compactor GDPR/PII Log Deletion

  1. Verify Compactor Prerequisites First: Read references/compactor-retention-and-deletion.md, call loki_get_diagnostics, and read loki://compactor/delete-requests to confirm compactor.retention_enabled: true and compactor.delete_request_store (s3/gcs/azure/filesystem) are configured! If disabled, explain why /loki/api/v1/delete requires durable request tracking and render the required compactor: YAML via render_loki_architecture_config.py.
  2. Block Unbounded Deletions: Never submit whole-namespace or filterless delete requests ({namespace="<namespace>"} over 7–30 days)—Compactor /loki/api/v1/delete rewrites every matching chunk in object storage (massive I/O amplification and audit-log loss). Direct storage reclamation to limits_config.retention_period / retention_stream.
  3. 4-Step Scoped PII Scrub (action="create"):
    • Scope exact blast radius first with read-only loki_query_range ({service_name="<service>", namespace="<namespace>"} |= "<pii_field>=").
    • Preview via loki_manage_delete_requests(action="create", query=..., start=..., end=..., dry_run=True, org_id=...).
    • Execute loki_manage_delete_requests(action="create", ..., dry_run=False, confirm=True, org_id=...) and verify loki://compactor/delete-requests (noting retention_delete_delay, typically 2h).
  4. Cancel Pending Mistaken Requests (action="cancel"):
    • Read loki://compactor/delete-requests to verify status: "received", call loki_manage_delete_requests(action="cancel", request_id="...", dry_run=True, org_id=...) first, then execute dry_run=False, confirm=True and re-read loki://compactor/delete-requests.

Read the full file on GitHub · 55 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 55 lines · 193 tokens per session scan A ff9cadb8fe7c

Subscribe to this mod's changes

operating-loki-deployments-and-ingestion is a skill published in the GitHub repository talkops-ai/talkops-mcp (4 stars, last pushed 12d ago), licensed Apache-2.0. It adds 193 tokens to every session and 1,850 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-18.

Related

operating-loki-deployments-and-ingestion compared with skills from other repositories

operating-loki-deployments-and-ingestion next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
operating-loki-deployments-and-ingestiontalkops-ai/talkops-mcpSkill412d agoApache-2.0A193Claude Code, Codex
chrome-devtools-cliChromeDevTools/chrome-devtools-mcpSkill60ktodayApache-2.0A31Claude Code
n8n-validation-expertczlonkowski/n8n-mcpSkill23k3d agoMITA91Claude Code, Codex
n8n-error-handlingczlonkowski/n8n-mcpSkill23k3d agoMITA128Claude Code, Codex
agentcore-investigationawslabs/mcpSkill10.0k2d agoApache-2.0A52Claude Code, Codex
openlore-analyze-codebaseclay-good/OpenLoreSkill369todayMITA48Claude Code, Codex
flutter-mcp-toolkit-intentcall-migrationArenukvern/mcp_flutterSkill4013d agoMITA58Claude Code