Vector / Pipeline Health

Health and delivery of Vector (vector.dev) pipelines on Vector 0.4x+ metric names: data loss, buffers and backpressure, latency, throughput, file sources. Works with or without a cluster label.

Vector / Pipeline Health screenshot 1
Vector / Pipeline Health screenshot 2
Vector / Pipeline Health screenshot 3
Vector / Pipeline Health screenshot 4
Vector / Pipeline Health screenshot 5

Built for Vector's current internal metric names (vector_buffer_size_bytes, vector_buffer_max_size_bytes, vector_component_latency_seconds, …). Dashboards that still query vector_buffer_byte_size / vector_buffer_events show empty buffer panels on recent Vector releases.

Rows

  • Overview: instances, versions, events in/out, lost events (unintentional discards over the selected range), fullest disk buffer, stalled sinks, sink errors.
  • Delivery & data loss: discards split into filtered (intentional) and lost (errors), errors by type and stage, HTTP responses by status, non-2xx share, and a received / sent / filtered / lost table per workload and component.
  • Buffers & backpressure: buffer fill (disk by bytes, memory by events), estimated time until a disk buffer is full, buffered bytes, buffer in/out, buffer write wait p99, topology channel utilization, component utilization.
  • Latency: time spent inside each component p95, source lag p95, sink request RTT p95, adaptive concurrency limit and in-flight.
  • Throughput: events and bytes by component and by workload.
  • File sources (collapsed): open files, files added/resumed/unwatched, fingerprint errors, checkpoints.
  • Process & resources (collapsed): restarts, internal metric cardinality, memory vs limit and CPU (needs cAdvisor and kube-state-metrics).

Requirements: Vector with an internal_metrics source and a prometheus_exporter sink, scraped by Prometheus or a compatible agent. The cluster, namespace and pod labels drive the variables; the dashboard works when cluster is absent. Workloads are derived from pod names (DaemonSet, StatefulSet and Deployment suffixes are stripped).

Reproduce the screenshots

The screenshots use synthetic data (demo-data-generator.py) that plays out a story over 3 hours: one rejected batch (413) loses a few events, the search backend is down for 30 minutes (503, buffer fills, sink stalls, concurrency drops to 1, backlog drains), and the archive sink slows down at the end (buffer grows, time-to-full appears).

python3 demo-data-generator.py > metrics.txt
docker network create vecdemo
docker run -d --name vecdemo-vm --network vecdemo -p 18428:8428 victoriametrics/victoria-metrics:v1.147.0
curl -X POST --data-binary @metrics.txt http://localhost:18428/api/v1/import/prometheus
docker run -d --name vecdemo-renderer --network vecdemo -e BROWSER_MAX_HEIGHT=12000 grafana/grafana-image-renderer:latest
# Grafana 12.3.3 with a provisioned Prometheus datasource (http://vecdemo-vm:8428, timeInterval 60s)
# and this dashboard, GF_RENDERING_SERVER_URL=http://vecdemo-renderer:8081/render, then:
curl -u admin:admin -o full.png "http://localhost:3002/render/d/vector-pipeline-health/x?from=now-3h&to=now&var-cluster=demo&var-namespace=logging&theme=dark&kiosk&scale=2&width=1800&height=4900"

dashboard-build.py regenerates vector-pipeline-health.json.

Revisions
RevisionDescriptionCreated

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies