跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Cost Export

技能 已验证 活跃

Export cost-tracking telemetry in Prometheus textfile or webhook JSON formats — for external observability (Grafana, Datadog, custom dashboards)

目的

To make internal cost data accessible to external observability platforms, enabling unified monitoring and alerting across infrastructure and AI agent usage.

功能

  • Export cost telemetry in Prometheus textfile format
  • Export cost telemetry in JSON webhook format
  • Support for Prometheus node_exporter textfile collector
  • Configurable via environment variables
  • Clear output metrics for costs, tiers, sessions, and budgets

使用场景

  • Refreshing dashboards in Grafana, Datadog, or Prometheus after cost tracking runs.
  • Keeping external dashboards near real-time by running the export on a schedule.
  • Sending cost data to Slack or custom endpoints via webhooks for ad-hoc reporting.
  • Monitoring budget utilization and alerting on cost overruns.

非目标

  • Collecting or processing cost data; it relies on the `cost-track` skill.
  • Configuring external observability systems (Grafana, Datadog, etc.).
  • Acting as a data storage layer for cost information.

工作流

  1. Retrieve cost-tracking records (`session-*`, `budget-config-*`)
  2. Format records into Prometheus textfile or JSON webhook payload
  3. Emit formatted data to specified Prometheus textfile path or webhook URL
  4. Optionally suppress confirmation output via `EXPORT_QUIET=1`

实践

  • Observability
  • Cost Management
  • Data Export

先决条件

  • Node.js runtime
  • The `cost-tracking` namespace data must exist

Scope

  • info:Dry-run previewWhile not strictly necessary for an export function, a dry-run mode to preview the telemetry output before sending it to a webhook could be a useful addition.

安装

请先添加 Marketplace

/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-cost-tracker@ruflo

质量评分

已验证
98 /100
1 day ago 分析

信任信号

最近提交1 day ago
星标50.2k
许可证MIT
状态
查看源代码

类似扩展

Grafana Dashboards

99

Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.

技能
wshobson

Service Mesh Observability

98

Implement comprehensive observability for service meshes including distributed tracing, metrics, and visualization. Use when setting up mesh monitoring, debugging latency issues, or implementing SLOs for service communication.

技能
wshobson

Plan Capacity

99

Perform capacity planning using historical metrics and growth models. Use predict_linear for forecasting, identify resource constraints, calculate headroom, and recommend scaling actions before saturation. Use before seasonal traffic spikes or product launches, during quarterly capacity reviews, when resource utilization trends upward, or before budget planning cycles.

技能
pjt222

Define SLO/SLI/SLA

99

Establish Service Level Objectives (SLO), Service Level Indicators (SLI), and Service Level Agreements (SLA) with error budget tracking, burn rate alerts, and automated reporting using Prometheus and tools like Sloth or Pyrra. Use when defining reliability targets for customer-facing services, balancing feature velocity against system reliability through error budgets, migrating from arbitrary uptime goals to data-driven metrics, or implementing Site Reliability Engineering practices.

技能
pjt222

Conduct Empirical Wire Capture

99

Capture outbound HTTP and telemetry from a CLI harness at runtime. Covers capture-channel selection (transcript file vs verbose-fetch stderr vs outbound proxy vs on-disk state), hook-driven per-event capture vs long-running session capture, JSONL output format for diff-friendly artifacts, and the observability table that maps each target to the cheapest channel that captures it. Use when a static finding needs runtime confirmation, when a payload shape is needed for a client re-implementation, or when dark-vs-live disambiguation requires watching what the binary actually sends.

技能
pjt222

Correlate Observability Signals

97

Unify metrics, logs, and traces for cohesive debugging. Implement exemplars for log-to-trace linking, build unified dashboards using RED/USE methods, and enable rapid root cause analysis across observability signals. Use when investigating complex incidents spanning multiple systems, reducing mean time to resolution, implementing distributed tracing, or moving from siloed tools to a unified observability platform.

技能
pjt222