prometheus-expert

prometheus-expert is an agent for Claude Code from NickCrew/Claude-Cortex. It costs 24 tokens per session (677 once invoked), scanned A, original, MIT.

A Prometheus monitoring agent for collecting application and infrastructure metrics, querying them with PromQL, and creating alerts and dashboards. Prometheus is an open-source system that stores time-based measurements.

In plain words
What is it for?
Use it to instrument code, configure scrape targets and retention, write PromQL queries, define alerting rules, connect Grafana dashboards, and manage metric performance.
Why use it?
It helps teams turn operational goals into useful metrics and alerts instead of relying on guesswork when systems degrade.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

Good fit Use it to instrument code, configure scrape targets and retention, write PromQL queries, define alerting rules, connect Grafana dashboards, and manage metric performance.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nickcrew/claude-cortex/prometheus-expert
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.

Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex

Made for: Claude Code.

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-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/nickcrew/claude-cortex/prometheus-expert/github.svg)](https://agentmods.dev/agents/nickcrew/claude-cortex/prometheus-expert)
Your own site
<a href="https://agentmods.dev/agents/nickcrew/claude-cortex/prometheus-expert"><img src="https://agentmods.dev/badge/agents/nickcrew/claude-cortex/prometheus-expert/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-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/nickcrew/claude-cortex/prometheus-expert"><img src="https://agentmods.dev/badge/agents/nickcrew/claude-cortex/prometheus-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 677 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.00024 $0.00677
Opus 5.5 $0.00010 $0.00271
Sonnet 5.5 $0.00005 $0.00135
Haiku 4.5 $0.00002 $0.00068

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

Security

Grade A, and why

prometheus-expert 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 1mo 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.

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.

archive/agents/prometheus-expert.md · 106 lines

How it starts

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

Focus Areas

  • Instrumenting code for Prometheus
  • Setting up Prometheus server and data retention policies
  • Defining Prometheus metrics and best practices
  • Configuring Prometheus jobs and targets
  • Understanding Prometheus query language (PromQL)
  • Integrating Prometheus with Grafana for visualization
  • Setting up and managing alerting rules
  • Managing Prometheus performance and scaling
  • Securing Prometheus endpoints and access
  • Utilizing Prometheus exporters effectively

Approach

  • Implement metrics with proper labels and types
  • Configure scraping with appropriate intervals and targets
  • Write efficient PromQL queries for monitoring needs
  • Utilize recording rules for computational efficiency
  • Set up Grafana dashboards for key metrics visualization
  • Implement and manage Alertmanager for effective alerts
  • Use Prometheus federation for scalable architecture
  • Ensure high availability and persistence of metrics
  • Monitor and optimize Prometheus resource usage
  • Follow Prometheus best practices for reliability

Quality Checklist

  • Metrics are uniquely named and well-documented
  • Queries are optimized for performance and accuracy
  • Scraping configuration follows best interval practices
  • All alerts are actionable and have clear runbooks
  • Grafana dashboards are intuitive and shareable
  • Redundancies are minimized in configuration
  • Security settings comply with industry standards
  • System resource usage is monitored for efficiency
  • Prometheus version is up-to-date and maintained
  • Configuration files are under version control

Output

  • Well-documented Prometheus configuration files
  • Comprehensive set of metrics for monitored systems
  • Optimized PromQL queries and recording rules
  • Detailed Grafana dashboards for visualization
  • Actionable alerting rules and runbooks in place
  • Efficient and high-performing Prometheus setup
  • Robust security configuration for access control
  • Thorough documentation of setup and maintenance
  • Continuous monitoring and adjustments for scalability
  • Feedback loop established for ongoing improvements

Read the full file on GitHub · 106 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. 1mo ago First seen · 106 lines · 24 tokens per session scan A d4670c7c718c

Subscribe to this mod's changes

prometheus-expert is an agent published in the GitHub repository NickCrew/Claude-Cortex (61 stars, last pushed 4mo ago), licensed MIT. It adds 24 tokens to every session and 677 once invoked, about $0.0001 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-09-03.

Related

Other agents, from other repositories

specialist-sre

An SRE and observability specialist for operating software systems. SRE means site reliability engineering, and observability means using system signals to understand health and failures.

ongridio/ongrid · 35 tokens

mesh

Designs and audits service meshes (Istio/Linkerd/Consul) including mTLS policy, traffic management, and golden-signal observability. Use when adding a service mesh, hardening inter-service security, or auditing an existing mesh config. Trigger with "design a service mesh", "audit our Istio setup".

jeremylongshore/tons-of-skills-marketplace · 68 tokens

devops-engineer

Infrastructure and platform engineering agent for CI/CD, Kubernetes, GitOps, service mesh, observability, and chaos engineering.

pjt222/agent-almanac · 28 tokens

gcp-cloud-architect

GCP cloud architect specializing in designing and implementing scalable Google Cloud solutions. Expert in GCE, GKE, Cloud Run, App Engine, and GCP best practices for containerized and serverless deployments.

andisab/swe-marketplace · 47 tokens

aws-cloud-architect

AWS cloud infrastructure architect specializing in designing, implementing, and optimizing scalable AWS solutions. Use for AWS service selection, architecture design, cost optimization, and security best practices for EC2, EKS, Fargate, and other AWS services.

andisab/swe-marketplace · 53 tokens

incident-investigator

An incident-investigation worker that follows a chain of causes back to the original source of a system alert or failure.

ongridio/ongrid · 35 tokens