Skip to content

critest: test metric descriptors#2017

Open
dgrisonnet wants to merge 2 commits intokubernetes-sigs:masterfrom
dgrisonnet:test-metrics-desc
Open

critest: test metric descriptors#2017
dgrisonnet wants to merge 2 commits intokubernetes-sigs:masterfrom
dgrisonnet:test-metrics-desc

Conversation

@dgrisonnet
Copy link
Copy Markdown
Member

What type of PR is this?

/kind feature

What this PR does / why we need it:

This PR is built on top of #1931 with an updated list of expected metrics descriptors for Kubernetes 1.37

Which issue(s) this PR fixes:

Special notes for your reviewer:

I included PSI metrics since the feature is in Beta, enabled by default and I think it is better to validate here before the feature becomes stable.

Does this PR introduce a user-facing change?

NONE

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. labels Mar 18, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dgrisonnet
Once this PR has been reviewed and has the lgtm label, please assign saschagrunert for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 18, 2026
Signed-off-by: Peter Hunt <pehunt@redhat.com>

critest: drop cpuLoad metrics from test

some context: kubernetes/kubernetes#134981

Signed-off-by: Peter Hunt <pehunt@redhat.com>

critest/metrics: generate some disk usage to guarantee io metrics are present

Signed-off-by: Peter Hunt <pehunt@redhat.com>

crio: update config to enable metrics

Signed-off-by: Peter Hunt <pehunt@redhat.com>
@dgrisonnet dgrisonnet force-pushed the test-metrics-desc branch 5 times, most recently from 57d93d6 to 22a6b74 Compare March 18, 2026 18:43
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
for _, desc := range descs {
if len(metricNamesFound[desc.GetName()]) != len(desc.GetLabelKeys()) {
if slices.Contains(optionalValuesForMetricDescriptors, desc.GetName()) {
continue // skip optional values
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this check actually checks the right thing. We maybbe should svae the ones not present, and fail if any not in optionalValuesForMetricDescriptors arent. for instance:

name: ["container_fs_reads_bytes_total", "other"]
GetLabelKeys: []

would pass here, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants