configuring-prometheus-scraping-and-discovery

configuring-prometheus-scraping-and-discovery is a skill for Claude Code, Codex from talkops-ai/talkops-mcp. It costs 192 tokens per session (2,364 once invoked), scanned A, original, Apache-2.0.

A guide for configuring how Prometheus finds and collects metrics from services and applications. It covers Kubernetes discovery resources such as ServiceMonitor and PodMonitor, as well as file-based targets and newer Prometheus data formats.

In plain words
What is it for?
Use it to add, validate, troubleshoot, or remove scrape configurations, verify metric endpoints, manage Kubernetes discovery resources, and inspect target health.
Why use it?
It helps diagnose targets that are missing, unreachable, or scraped with errors without relying on ad hoc commands. It also checks that discovery settings match the Kubernetes Operator and ingestion features in use.

Skill for Claude CodeCodex

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

Good fit Use it to add, validate, troubleshoot, or remove scrape configurations, verify metric endpoints, manage Kubernetes discovery resources, and inspect target health.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/talkops-ai/talkops-mcp/configuring-prometheus-scraping-and-discovery
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 configuring-prometheus-scraping-and-discovery
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 configuring-prometheus-scraping-and-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/configuring-prometheus-scraping-and-discovery/github.svg)](https://agentmods.dev/skills/talkops-ai/talkops-mcp/configuring-prometheus-scraping-and-discovery)
Your own site
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/configuring-prometheus-scraping-and-discovery"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/configuring-prometheus-scraping-and-discovery/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 configuring-prometheus-scraping-and-discovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/configuring-prometheus-scraping-and-discovery"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/configuring-prometheus-scraping-and-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 192 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,364 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00192 $0.02364
Opus 5.5 $0.00077 $0.00946
Sonnet 5.5 $0.00038 $0.00473
Haiku 4.5 $0.00019 $0.00236

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

Security

Grade A, and why

configuring-prometheus-scraping-and-discovery scanned grade A with 1 finding 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/validate_scrape_manifest.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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Manages the end-to-end lifecycle of Prometheus target discovery across Kubernetes Operator CRDs (`ServiceMonitor`, `PodMonitor`, `Probe`, `ScrapeConfig`), Prometheus 3.0 OTLP/Native Histogram ingestion, and `file_sd` tar
src/prometheus-mcp-server/skills/configuring-prometheus-scraping-and-discovery/SKILL.md · 72 lines

How it starts

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

Configuring Prometheus Scraping and Discovery

Manages the end-to-end lifecycle of Prometheus target discovery across Kubernetes Operator CRDs (ServiceMonitor, PodMonitor, Probe, ScrapeConfig), Prometheus 3.0 OTLP/Native Histogram ingestion, and file_sd target files. Strictly use Prometheus MCP resources (prom://kubernetes/scrape-crds, prom://kubernetes/manifests/{kind}/{namespace}/{name}, prom://topology/targets) and tools (prom_apply_scrape_config, prom_delete_scrape_config, prom_get_diagnostics, prom_verify_metrics_endpoint) — never run raw kubectl (kubectl get, kubectl apply) or curl shell commands. If invoked via plugin command workflow commands/setup-monitoring.md (/setup-monitoring), read that command file first and coordinate the full workflow.

MCP Execution Primitives Used

  • Resources:
    • prom://topology/targets — live scrape target health (up vs down) and last scrape errors.
    • prom://kubernetes/scrape-crds — cluster inventory of ServiceMonitor, PodMonitor, Probe, ScrapeConfig, PrometheusRule CRDs, operator_selectors (serviceMonitorSelector, ruleSelector, probeSelector), discovered_services (Service labels and named ports), and discovered_workloads (Pod labels and container named ports).
    • prom://kubernetes/manifests/{kind}/{namespace}/{name} — read the live redacted YAML/JSON manifest of a specific ServiceMonitor, PodMonitor, Probe, or ScrapeConfig (always use this instead of kubectl get ... -o yaml).
    • prom://audit/recent — inspect recent scrape configuration dry_run and succeeded audit records.
  • Tools (scrape & diagnostics toolsets):
    • prom_get_diagnostics — inspect DOWN targets (include="targets"), scrape errors (got "<" HTML parse errors, context deadline exceeded timeouts), and backend health.
    • prom_verify_metrics_endpoint — probe an HTTP /metrics URL (including in-cluster .svc endpoints) and poll Prometheus until up{job=...} == 1.0.
    • prom_apply_scrape_config — create or update ServiceMonitor (supporting target_service auto-discovery), PodMonitor, Probe, ScrapeConfig, or file_sd target groups (dry_run=True default).
    • prom_delete_scrape_config — remove retired scrape CRDs or file_sd files (dry_run=True default).

Read the full file on GitHub · 72 lines

Files

What ships with it

3 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 · 72 lines · 192 tokens per session scan A 29a52633fcc7

Subscribe to this mod's changes

configuring-prometheus-scraping-and-discovery is a skill published in the GitHub repository talkops-ai/talkops-mcp (4 stars, last pushed 12d ago), licensed Apache-2.0. It adds 192 tokens to every session and 2,364 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-18.

Related

configuring-prometheus-scraping-and-discovery compared with skills from other repositories

configuring-prometheus-scraping-and-discovery next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
configuring-prometheus-scraping-and-discoverytalkops-ai/talkops-mcpSkill412d agoApache-2.0A192Claude Code, Codex
agentcore-investigationawslabs/mcpSkill10.0k2d agoApache-2.0A52Claude Code, Codex
auditing-terraform-infrastructure-for-securityxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A59Claude Code, Codex
gcp-triagenirholas/three.wsSkill287yesterdayApache-2.0A93Claude Code
ssh-incidentbvisible/mcp-ssh-managerSkill554yesterdayMITA46Claude Code, Codex
deploy-runbooknirholas/three.wsSkill287yesterdayApache-2.0A38Claude Code
huawei-cloud-waf-aad-rule-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A338Claude Code