What problem does it solve?
Cost data recorded by the cost-track skill stays locked inside the AgentDB namespace, making it invisible to external observability stacks. This Skill pulls every session and budget record and emits them in formats that Grafana, Datadog, Prometheus, or any webhook consumer can ingest.
Core Features & Use Cases
- Prometheus textfile export: Writes a .prom file with gauges for total spend, per-tier spend, per-session totals, and budget utilization, ready for the node_exporter textfile collector.
- Webhook JSON delivery: POSTs the full cost payload (sessions, budget, totals, per-tier breakdown) to any HTTP endpoint, with custom auth headers via environment variables.
- Use Case: After running cost tracking across agent sessions, schedule a recurring export every 5 minutes so a Grafana dashboard always shows near-real-time LLM spend and budget utilization.
Quick Start
Ask the AI to export the current cost-tracking data to a Prometheus textfile at your node_exporter collector path, or to POST it as JSON to your webhook URL.