prometheus

prometheus is a skill for Claude Code from addxai/enterprise-harness-engineering. It costs 51 tokens per session (1,134 once invoked), scanned A, a copy of prometheus-addxai, Apache-2.0.

A guide for querying Prometheus, a monitoring system that stores time-based measurements from servers and services, and its alert rules. It uses the Prometheus HTTP API and PromQL, the language for asking questions about those measurements.

In plain words
What is it for?
Use it to check CPU, memory, disk, container, Kubernetes, network, Kafka, Redis, or application metrics, review alerts, and verify whether monitoring targets are healthy.
Why use it?
It helps investigate resource use, service health, alerts, and capacity trends without manually reading raw monitoring data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the enterprise-harness-engineering plugin — 25 skills shipped together

Good fit Use it to check CPU, memory, disk, container, Kubernetes, network, Kafka, Redis, or application metrics, review alerts, and verify whether monitoring targets are healthy.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/addxai/enterprise-harness-engineering/prometheus
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 addxai/enterprise-harness-engineering --skill prometheus
Clone the repo
git clone --depth 1 https://github.com/addxai/enterprise-harness-engineering

Made for: Claude Code.

Or install enterprise-harness-engineering, the plugin that ships this one along with the rest of its 25 skills.

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 prometheus

README.md
[![agentmods](https://agentmods.dev/badge/skills/addxai/enterprise-harness-engineering/prometheus/github.svg)](https://agentmods.dev/skills/addxai/enterprise-harness-engineering/prometheus)
Your own site
<a href="https://agentmods.dev/skills/addxai/enterprise-harness-engineering/prometheus"><img src="https://agentmods.dev/badge/skills/addxai/enterprise-harness-engineering/prometheus/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 prometheus

Your own site · 80×15
<a href="https://agentmods.dev/skills/addxai/enterprise-harness-engineering/prometheus"><img src="https://agentmods.dev/badge/skills/addxai/enterprise-harness-engineering/prometheus.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,134 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 92% copy Near-identical to another mod 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.00051 $0.01134
Opus 5.5 $0.00020 $0.00454
Sonnet 5.5 $0.00010 $0.00227
Haiku 4.5 $0.00005 $0.00113

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

Security

Grade A, and why

prometheus 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 3mo ago.

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.

curl "$PROMETHEUS_URL/api/v1/query?query=sum by(pod)(rate(container_cpu_usage_seconds_total[5m]))"
Origin

This is a copy

92% identical to prometheus-addxai — 15 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/prometheus/SKILL.md · 99 lines

How it starts

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

prometheus

Query monitoring metrics, check alerts, and verify target health via the Prometheus HTTP API. API and PromQL syntax are referenced through Context7 MCP; only environment-specific rules are documented here.

Setup

Configure your Prometheus endpoint before using this skill:

Variable Description Required
PROMETHEUS_URL Your Prometheus server URL (e.g. http://prometheus.internal:9090) Yes

Common metric prefixes to monitor:

  • node_* — Node Exporter (host metrics: CPU, memory, disk, network)
  • kube_* — kube-state-metrics (K8s object state: deployments, pods, nodes)
  • container_* — cAdvisor (container resource usage)
  • apiserver_* — K8s API Server metrics
  • kubelet_* — Kubelet metrics
  • prometheus_* — Prometheus self-monitoring

If you have additional exporters (Kafka, Redis, custom applications), add their metric prefixes here:

Prefix Source Description
kafka_* Kafka Exporter Broker and consumer group metrics
fluentbit_* Fluent Bit Log pipeline metrics
(add your own)

Authentication: Configure as needed for your environment (none, basic auth, or bearer token).

API endpoints and PromQL syntax can be found in the official Prometheus documentation.

Rules

Query Considerations

  • Confirm whether your Prometheus uses HTTP or HTTPS and configure PROMETHEUS_URL accordingly
  • step should not be smaller than the scrape interval (typically 15s-60s) to avoid invalid interpolation
  • High-cardinality labels (user_id, request_id) must not be used in rate() / sum by() aggregations
  • On macOS, use date -v-1H +%s instead of the Linux date -d '1 hour ago' +%s

Job Label Convention

Job labels are the key to locating services. Common naming patterns:

Pattern Example Description
{env}-{region}-{service} prod-gateway Service by environment and region
kubernetes-{resource} kubernetes-pods Standard K8s metrics
{component}-exporter kafka-exporter Dedicated exporters

Read the full file on GitHub · 99 lines

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. 3mo ago First seen · 99 lines · 51 tokens per session scan A e48401f51d19

Subscribe to this mod's changes

prometheus is a skill published in the GitHub repository addxai/enterprise-harness-engineering (47 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 1,134 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 92% identical to prometheus-addxai, differing in 15 lines, and is treated as a copy.

Related

prometheus compared with skills from other repositories

prometheus next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prometheusaddxai/enterprise-harness-engineeringSkill477mo agoApache-2.0A51Claude Code
linkerd-patternswshobson/agentsSkill43k6d agoMITA41Claude Code
cost-optimizationwshobson/agentsSkill43k6d agoMITA48Claude Code
istio-traffic-managementwshobson/agentsSkill43k6d agoMITA40Claude Code
orchard-releaserohitg00/ai-engineering-from-scratchSkill81ktodayMITA11Claude Code, Codex
orchard-reviewrohitg00/ai-engineering-from-scratchSkill81ktodayMITA8Claude Code, Codex
peon-ping-togglePeonPing/peon-pingSkill5.1k23d agoMITA58Claude Code