prometheus-expert

prometheus-expert is an agent for coding agents 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

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.

agentmods
npx agentmods add agents/nickcrew/claude-cortex/prometheus-expert
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
Origin unknown 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 $0.00024 $0.00677
Opus 5 $0.00012 $0.00338
Sonnet 5 $0.00005 $0.00135
Haiku 4.5 $0.00002 $0.00068

Measured today against content hash d4670c7c718c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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. today 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 (37 stars, last pushed 2mo ago), licensed MIT. It adds 24 tokens to every session and 677 once invoked, about $0.0001 per session on Opus 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.