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.
Built for Vector's current internal metric names (
vector_buffer_size_bytes,vector_buffer_max_size_bytes,vector_component_latency_seconds, …). Dashboards that still queryvector_buffer_byte_size/vector_buffer_eventsshow 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_metricssource and aprometheus_exportersink, scraped by Prometheus or a compatible agent. Thecluster,namespaceandpodlabels drive the variables; the dashboard works whenclusteris 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.
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
| Revision | Description | Created | |
|---|---|---|---|
| Download |