Files
cozystack/packages/system/monitoring/tests
ZverGuy 7f7496c8d3 fix(monitoring): remove the identity placeholder from scrape-health series
vmagent appends up and scrape_* to each scrape after metric relabeling:
in VictoriaMetrics v1.136.0, the version operator v0.68.4 deploys,
lib/promscrape/scrapework.go addAutoMetrics passes needRelabel=false to
writeRequestCtx.addRows, so addRow attaches the target labels but skips
MetricRelabelConfigs. The "-" placeholder that the scrape class sets on
targets without lineage was removed only in metricRelabelConfigs, so it
stayed on the scrape-health series of every such target, including
nodes and kube-state-metrics.

The removal now runs in the VMAgent's inlineRelabelConfig, which the
operator passes as -remoteWrite.relabelConfig. app/vmagent/remotewrite
TryPush applies it to every series before remote write, scraped and
generated alike, so targets without lineage keep the label set they had
before the class. The exported_* drop stays in the class: only scraped
samples can carry it.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
2026-11-05 00:16:36 +07:00
..