Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Prefer Prometheus samples and add metrics sink

9 months ago

9c1ff3b
Authored
mweinbach2/12/2026, 12:51:51 AM
Add a metrics pipeline to vector.toml (internal_metrics source, metric_events filter, and Prometheus remote_write sinks to VictoriaMetrics) to forward both Vector internals and OTLP metrics. In src/observability/slo.ts introduce extractPrometheusSampleFromObject and update extractNumeric to prefer Prometheus sample (vector/matrix) values over numeric metric label values. Add tests verifying that vector and matrix sample values are chosen over label values when evaluating SLOs.

Parent7247ce9

3 files changed
  • config/observability/vector/vector.toml+23−0
  • src/observability/slo.ts+23−1
  • test/observability.slo.test.ts+78−0