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.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.svg" alt="Measured on agentmods" 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 $0.00026 $0.00567
Sonnet 5 $0.00010 $0.00227
Haiku 4.5 $0.00005 $0.00113

Measured 8d ago against content hash e48401f51d19, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 8d 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. 8d 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 (44 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 1,134 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

cost-optimization

Optimize cloud costs across AWS, Azure, GCP, and OCI through resource rightsizing, tagging strategies, reserved instances, and spending analysis. Use when reducing cloud expenses, analyzing infrastructure costs, or implementing cost governance policies.

wshobson/agents · 48 tokens

istio-traffic-management

Configure Istio traffic management including routing, load balancing, circuit breakers, and canary deployments. Use when implementing service mesh traffic policies, progressive delivery, or resilience patterns.

wshobson/agents · 40 tokens

terraform-module-library

Build reusable Terraform modules for AWS, Azure, GCP, and OCI infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

wshobson/agents · 44 tokens

linkerd-patterns

Implement Linkerd service mesh patterns for lightweight, security-focused service mesh deployments. Use when setting up Linkerd, configuring traffic policies, or implementing zero-trust networking with minimal overhead.

wshobson/agents · 41 tokens

peon-ping-toggle

Toggle peon-ping sound notifications on/off. Use when user wants to mute, unmute, pause, or resume peon sounds during a Claude Code session. Also handles config changes like volume, pack rotation, categories — any peon-ping setting.

PeonPing/peon-ping · 58 tokens

peon-ping-log

Log exercise reps for the Peon Trainer. Use when user says they did pushups, squats, or wants to log reps. Examples - "/peon-ping-log 25 pushups", "/peon-ping-log 30 squats", "log 50 pushups".

PeonPing/peon-ping · 64 tokens