Skip to content

ROX-33352: Add histogram of lineage size#19406

Open
JoukoVirtanen wants to merge 2 commits intojv-ROX-32873-metrics-for-process-argumentsfrom
jv-ROX-33352-add-histogram-of-lineage-size
Open

ROX-33352: Add histogram of lineage size#19406
JoukoVirtanen wants to merge 2 commits intojv-ROX-32873-metrics-for-process-argumentsfrom
jv-ROX-33352-add-histogram-of-lineage-size

Conversation

@JoukoVirtanen
Copy link
Contributor

@JoukoVirtanen JoukoVirtanen commented Mar 13, 2026

Description

Adds a metric that keeps track of a histogram of the size of process lineages in characters.

See the related PR for a metric for process arguments. #18794

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

# HELP rox_central_process_indicators_lineage_size Distribution of process lineage sizes in characters for upserted indicators
# TYPE rox_central_process_indicators_lineage_size histogram
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="0"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="128"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="256"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="512"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="1024"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="2048"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="4096"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="8192"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="16384"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="32768"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="65536"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default",le="+Inf"} 1
rox_central_process_indicators_lineage_size_sum{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default"} 0
rox_central_process_indicators_lineage_size_count{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="default"} 1
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="0"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="128"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="256"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="512"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="1024"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="2048"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="4096"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="8192"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="16384"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="32768"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="65536"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim",le="+Inf"} 2
rox_central_process_indicators_lineage_size_sum{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim"} 0
rox_central_process_indicators_lineage_size_count{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gke-managed-cim"} 2
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="0"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="128"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="256"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="512"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="1024"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="2048"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="4096"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="8192"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="16384"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="32768"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="65536"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system",le="+Inf"} 7
rox_central_process_indicators_lineage_size_sum{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system"} 0
rox_central_process_indicators_lineage_size_count{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="gmp-system"} 7
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="0"} 106
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="128"} 358
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="256"} 358
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="512"} 358
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="1024"} 358
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="2048"} 358
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="4096"} 358
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="8192"} 358
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="16384"} 358
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="32768"} 358
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="65536"} 358
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system",le="+Inf"} 358
rox_central_process_indicators_lineage_size_sum{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system"} 12134
rox_central_process_indicators_lineage_size_count{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="kube-system"} 358
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="0"} 20
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="128"} 42
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="256"} 42
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="512"} 42
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="1024"} 42
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="2048"} 42
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="4096"} 42
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="8192"} 42
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="16384"} 42
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="32768"} 42
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="65536"} 42
rox_central_process_indicators_lineage_size_bucket{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox",le="+Inf"} 42
rox_central_process_indicators_lineage_size_sum{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox"} 914
rox_central_process_indicators_lineage_size_count{cluster="87ef8fc5-ca3f-4ae7-8825-f0f968b63102",namespace="stackrox"} 42

@openshift-ci
Copy link

openshift-ci bot commented Mar 13, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@JoukoVirtanen JoukoVirtanen changed the base branch from jv-ROX-33267-metrics-to-keep-track-of-pruned-process-indicators to jv-ROX-32873-metrics-for-process-arguments March 13, 2026 00:19
@JoukoVirtanen JoukoVirtanen changed the title Jv rox 33352 add histogram of lineage size ROX-33352: Add histogram of lineage size Mar 13, 2026
@JoukoVirtanen JoukoVirtanen requested a review from erthalion March 13, 2026 02:40
@JoukoVirtanen JoukoVirtanen marked this pull request as ready for review March 13, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant