
Cost Export
Exports cost-tracking telemetry as Prometheus textfile or webhook JSON for external dashboards.
- skills.sh installs
- 681
- GitHub stars
- 82.2K
- last updated
- Aug 21, 2026
What it does
- Covers session and budget records from the
cost-trackingnamespace, emitted for Grafana, Datadog, and custom dashboards - Includes Prometheus metrics for total, per-tier (opus, sonnet, haiku), per-session, and budget utilization values
- Supports a
--prometheus <path>textfile output and a--webhook <url>POST with optional auth headers viaEXPORT_WEBHOOK_HEADER - Designed for scheduled refreshes with
/loop 5mor one-shot reporting to Slack and custom endpoints
Install
$ npx -y skills add ruvnet/ruflo --skill cost-export -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Cost Export
Pulls every session-* and budget-config-* record from cost-tracking and emits in formats consumable by external observability systems. Without this, cost data lives only inside the AgentDB namespace; with it, the same data lights up dashboards.
When to use
- After any cost-track run, to refresh metrics for Grafana / Datadog / Prometheus.
- Cron-friendly via
/loop 5mto keep external dashboards near-real-time. - One-shot to a webhook for ad-hoc reporting (Slack, custom endpoint).
Steps
-
Pick a format — textfile collector for Prometheus / Grafana, or webhook POST for everything else:
# Prometheus node_exporter textfile collector node plugins/ruflo-cost-tracker/scripts/export.mjs --prometheus /var/lib/node_exporter/textfile_collector/cost_tracker.prom # Webhook (POSTs JSON; add auth via env) EXPORT_WEBHOOK_HEADER='Authorization: Bearer $TOKEN' \ node plugins/ruflo-cost-tracker/scripts/export.mjs --webhook https://hooks.example.com/cost-tracker # Stdout JSON (default if no flag) node plugins/ruflo-cost-tracker/scripts/export.mjs -
Inspect what's emitted — Prometheus output includes:
Details
- Repository
- github.com/ruvnet/ruflo
- Categories
- DevOps & Cloud, Agent Workflow & Planning
- First seen
- Jun 3, 2026
More from ruvnet/ruflo
All 236- Cost Benchmark679
- Cost Booster Edit679
- Browser674
- Witness656
- AgentDB Advanced Features
- AgentDB Learning Plugins
- AgentDB Memory Patterns
- AgentDB Performance Optimization
- AgentDB Vector Search
- Hooks Automation
- Pair Programming
- ReasoningBank Intelligence
- ReasoningBank With AgentDB
- Skill Builder
- V3 CLI Modernization
- V3 Core Implementation
- V3 DDD Architecture
- V3 Deep Integration
- V3 MCP Optimization
- V3 Memory Unification
- V3 Performance Optimization
- V3 Security Overhaul
- V3 Swarm Coordination
- Agent Arch System Design1.4K
Similar to Cost Export
More DevOps & Cloud
cost-summarySkillruvnet/ruflo684 installsSingle-call JSON or markdown snapshot of total spend, per-tier costs, budget status, and federation totals.
data-exportSkillhoangsonww/claude-code-agent-monitor1.2K starsExport Agent Monitor sessions, events, analytics, and costs as JSON, CSV, or Markdown with filters.
cost-reportSkillruvnet/ruflo730 installsGenerate per-agent and per-model token and USD cost reports with budget utilization and tier breakdown.
McpspendMCP serverandreisirbu91-lab58 starsCost and usage data from MCPSpend: today's spend, monthly limits, top tools, and sessions.
quick-statsSkillhoangsonww/claude-code-agent-monitor1.2K starsCompact terminal dashboard that pulls session, cost, event, and tool metrics from Agent Monitor in one line.
cost-managementSkillgrafana/skills4.6K installsGrafana Cloud cost reduction via team attribution, Adaptive Metrics, Logs, and Traces, plus usage alerts.