prometheus

Instructions for sending operational measurements to Prometheus Pushgateway, a service that receives metrics for Prometheus monitoring and Grafana dashboards.

In plain words
What is it for?
Use it to push single or multiple gauge metrics, list existing metric jobs, follow naming conventions, or delete metrics for a job.
Why use it?
It provides a repeatable way to publish task counts, queue sizes, and other values so they can be monitored.

Skill for Claude CodeCodex

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 skills/ssube/conclave/prometheus
Any agent
npx skills add ssube/conclave --skill prometheus
Clone the repo
git clone --depth 1 https://github.com/ssube/conclave

Made for: Claude Code, Codex.

Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 491 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. Scan, not verified.
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 $0.00036 $0.00491
Opus 5 $0.00018 $0.00246
Sonnet 5 $0.00007 $0.00098
Haiku 4.5 $0.00004 $0.00049

Measured 2d ago against content hash fae705969a4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade D, and why

prometheus scanned grade D with 3 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (prometheus.sh), 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

cat <<EOF | curl -sf --data-binary @- "${AGENT_PUSHGATEWAY_URL}/metrics/job/agent/instance/$(hostname)"

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -sf "${AGENT_PUSHGATEWAY_URL}/api/v1/metrics" | python3 -m json.tool

Makes network callslowCapability

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

Push metrics to the Prometheus Pushgateway via curl. No script required.
pi/skills/prometheus/SKILL.md · 65 lines

What it actually says

Prometheus Metrics

Push metrics to the Prometheus Pushgateway via curl. No script required.

Environment

  • AGENT_PUSHGATEWAY_URL — Pushgateway base URL (set automatically by Conclave when the local Pushgateway is enabled)

Push a Single Metric

cat <<EOF | curl -sf --data-binary @- "${AGENT_PUSHGATEWAY_URL}/metrics/job/agent/instance/$(hostname)"
# TYPE tasks_completed_total gauge
tasks_completed_total{category="bugs"} 12
EOF

Push Multiple Metrics

cat <<EOF | curl -sf --data-binary @- "${AGENT_PUSHGATEWAY_URL}/metrics/job/agent/instance/$(hostname)"
# TYPE tasks_completed_total gauge
tasks_completed_total{category="bugs"} 12
tasks_completed_total{category="features"} 5
# TYPE queue_depth gauge
queue_depth{queue="builds"} 3
queue_depth{queue="deploys"} 0
EOF

Delete Metrics for a Job

curl -sf -X DELETE "${AGENT_PUSHGATEWAY_URL}/metrics/job/agent/instance/$(hostname)"

List Existing Jobs

curl -sf "${AGENT_PUSHGATEWAY_URL}/api/v1/metrics" | python3 -m json.tool

Metric Naming Conventions

Use descriptive names with a consistent prefix. Examples:

  • myapp_tasks_total — Task counts (label: category)
  • myapp_queue_depth — Queue depth (label: queue)
  • myapp_requests_total — Request counts (label: endpoint)
  • myapp_errors_total — Error counts (label: service)
  • myapp_duration_seconds — Duration metrics (label: operation)

Format Rules

  • Prometheus text format: metric_name{label="value"} number
  • Use # TYPE metric_name gauge before each metric group
  • One metric per line, no trailing whitespace
  • Labels are key="value" pairs, comma-separated inside {}
Files

What ships with it

1 file 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. 2d ago First seen · 65 lines · 36 tokens per session scan D fae705969a4b

Subscribe to this mod's changes

prometheus is a skill published in the GitHub repository ssube/conclave (2 stars, last pushed 6mo ago), licensed MIT. It adds 36 tokens to every session and 491 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it D with 3 findings (sends data to an external url, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mine

Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.

MemPalace/mempalace · 21 tokens

mempalace-recall

Recall protocol for MemPalace — search the palace before answering about past work, people, projects, or prior decisions. Apply when the user asks what was decided, what happened before, who someone is, what was discussed last time, or anything that may already be filed in their memory palace; or when mempalace-recall…

MemPalace/mempalace · 94 tokens

docker-extend

Use when: User wants to extend Docker with custom tools, personalize the Docker environment, or set up user-specific Docker customization. Triggers: 'extend docker', 'docker-extend', 'add tools to docker', 'customize docker', 'add my tools to the container', 'personalize docker setup', 'docker user setup', 'install…

coleam00/Archon · 118 tokens

database-migrations

Database migration best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments across PostgreSQL, MySQL, and common ORMs (Prisma, Drizzle, Django, TypeORM, golang-migrate). Use when planning or implementing database schema changes.

mturac/everything-openai-codex · 61 tokens

python-testing

Python testing best practices using pytest including fixtures, parametrization, mocking, coverage analysis, async testing, and test organization. Use when writing or improving Python tests.

mturac/everything-openai-codex · 35 tokens

docker-patterns

Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration. Use when setting up containerized development environments or reviewing Docker configurations.

mturac/everything-openai-codex · 40 tokens