Metrics Reference¶
The cloud-vinyl operator exposes Prometheus metrics on port 8080 at /metrics.
Metrics¶
These vinyl_* metrics describe the operator domain (reconcile, VCL push,
invalidation). They are always recorded. Duration histograms are aggregated over
all caches and therefore carry no labels.
Metric |
Type |
Labels |
Description |
|---|---|---|---|
|
Counter |
|
Total reconcile loop invocations. |
|
Histogram |
— |
Reconcile loop duration in seconds. |
|
Counter |
|
VCL push attempts, counted per peer. |
|
Histogram |
— |
VCL push duration in seconds (whole push operation). |
|
Counter |
|
Invalidation requests. |
|
Histogram |
— |
Invalidation operation duration in seconds. |
|
Counter |
|
Broadcast requests to individual Varnish pods. |
|
Counter |
|
Broadcasts where some but not all pods failed. |
|
Gauge |
|
Number of VCL versions currently loaded in Varnish (drift indicator). |
Varnish cache metrics (exporter)¶
Cache hit ratio and backend health are not operator-side metrics. They come
from the prometheus_varnish_exporter sidecar (enabled via
spec.monitoring.exporter.enabled), which reads varnishstat (VSM) and exposes
native varnish_* metrics scraped via the generated ServiceMonitor. The most
relevant ones:
Metric |
Type |
Description |
|---|---|---|
|
Counter |
Cumulative cache hits ( |
|
Counter |
Cumulative cache misses ( |
|
Gauge |
Backend health-probe window ( |
Compute the hit ratio in PromQL/Grafana rather than relying on an operator gauge:
sum(rate(varnish_main_cache_hit[5m])) by (namespace)
/ (sum(rate(varnish_main_cache_hit[5m])) by (namespace)
+ sum(rate(varnish_main_cache_miss[5m])) by (namespace))
Alerts¶
When monitoring.prometheusRules.enabled: true, the following alerts are deployed:
Alert |
Severity |
Condition |
|---|---|---|
|
warning |
VCL push error rate > 0 for 5 m |
|
warning |
Partial failure counter > 0 for 2 m |
|
critical |
Push errors and reconcile errors both > 0 for 1 m |
|
warning |
|
|
warning |
exporter-derived hit ratio < 50% for 15 m |
|
warning |
>100 invalidations/s for 5 m |
|
warning |
Reconcile error rate > 0 for 5 m |
|
critical |
No reconcile metrics present for 5 m |
|
warning |
>2 VCL versions loaded for 10 m |
|
warning |
>10% broadcast error rate for 5 m |