Skip to content

fix(dashboards): unhide HA instance and fix CPU panels - #24

Merged
VioletCranberry merged 2 commits into
mainfrom
225-metrics-processing-dashboard
Sep 22, 2026
Merged

VioletCranberry merged 2 commits into
mainfrom
225-metrics-processing-dashboard

Conversation

@VioletCranberry

Copy link
Copy Markdown
Contributor

Why

This dashboard is the evidence base for the metrics-path sizing work (#178, #206), and three defects made it unusable for that.

  • HA instance 1 was invisible. Three panels pinned pod_name=suse-observability-victoria-metrics-0-0. #223 fixed the chart so instance 1 reports metrics; these panels still hid them.
  • CPU Throttling rendered nothing at all. Both queries divided by container_cpu_elapsed_periods, which is 0 for a container with no CPU limit, making the ratio NaN. Verified against a live namespace: zero series. This is the primary signal the CPU-reduction work in #206 depends on.
  • No headroom reference. CPU usage panels showed usage with nothing to compare it to.

What

Panels break down by (pod_name) over all VictoriaMetrics pods. Throttling is one query grouped on container, covering all four components where the old pair split across kube_app_component and kube_app_name, with a > 0 guard on the denominator.

Throttling genuinely cannot exist without a CPU limit, so a new CPU Pressure panel plots container_cpu_partial_stall, which reports contention either way. Both CPU usage panels gained request and limit lines.

Testing

sts stackpack validate passes, and test-deployed to nightly-champagne as 0.0.8-cli-test.10000 — the instance upgraded cleanly from 0.0.7.

Be aware neither of those gates is strong: I reintroduced a known-bad unit: seconds into a throwaway copy and validate still reported success, so it is structural only. Separately, the validate job in this repo's CI is a no-op — the pinned validator image prints usage: WebApp and exits 0. Worth its own ticket; it means schema problems here are caught by nothing but review.

Queries were checked against live data: slow inserts 2.0%, churn 559 series/s, requests 0.25/1.25/1.5/5.5 cores, PSI stall highest on vmagent at 23.8ms.

Reviewer notes

  • unit: s, not seconds - the latter appears nowhere else in any .sty.
  • data-ingestion.sty has the identical blank throttling panel, left untouched.

Refs #225

… sizing

The churn, slow-insert and slow-query panels pinned
pod_name=suse-observability-victoria-metrics-0-0, so HA instance 1 stayed
invisible even after #223 made it report metrics. Break them down by
pod_name across all VictoriaMetrics pods instead.

Both CPU Throttling queries returned no series: they divide by
container_cpu_elapsed_periods, which is 0 when a container has no CPU limit,
so the ratio was NaN. Collapse them into one query grouped on container,
which covers all four components rather than splitting across
kube_app_component and kube_app_name, and guard the denominator.

Throttling cannot exist without a CPU limit, so add a CPU Pressure panel on
container_cpu_partial_stall, which reports contention regardless. That is the
signal needed when comparing CPU requests.

Add request and limit reference lines to both CPU usage panels so headroom is
readable.
@VioletCranberry VioletCranberry changed the title fix(suse-observability): make metrics-processing dashboard usable for… fix(dashboards): unhide HA instance and fix CPU panels Sep 21, 2026
Comment thread stackpacks/suse-observability/settings/dashboards/metrics-processing.sty Outdated
@rb3ckers

Copy link
Copy Markdown
Contributor

I would also be interested in these 3 queue metrics:

  • For vmagent: stackstate_vm_persistentqueue_write_duration_seconds_total
  • For VM itself: stackstate_vm_pending_rows
  • For collector: stackstate_otelcol_exporter_queue_size{data_type="metrics"}. But I believe we said we would not take the collector into account right now, only the receiver. And I don't see a similar metric there.

Comment thread stackpacks/suse-observability/settings/dashboards/metrics-processing.sty Outdated
Add the queue signals the sizing work needs, with no existing panel:
VictoriaMetrics pending rows split by storage and indexdb, vmagent
persistent-queue write time alongside pending bytes, collector metrics
export queue occupancy, and receiver memory-limiter saturation.

Collector queue is plotted as occupancy against queue_capacity rather than
raw depth, since capacity differs per exporter and profile. The receiver has
no queue, so its memory limiter stands in: reaching the limit is what makes
it reject incoming data.

Scope every container selector with kube_app_instance, since container names
alone are not specific enough. kube_app_name cannot serve here - receiver and
vmagent report it as suse-observability while the collector and VictoriaMetrics
report their own names.

Anchor the pod_name selectors on the suse-observability prefix, which the
chart fixes via fullnameOverride rather than deriving from the release name.
@VioletCranberry
VioletCranberry merged commit 0a0fa69 into main Sep 22, 2026
12 checks passed
@VioletCranberry
VioletCranberry deleted the 225-metrics-processing-dashboard branch September 22, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants