Skip to content

Remove unhelpful labelDrops in scrapeConfig - #1011

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
csibbitt:csibbitt_OSPRH-36638_bad_labeldrops
Sep 16, 2026
Merged

openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
csibbitt:csibbitt_OSPRH-36638_bad_labeldrops

Conversation

@csibbitt

@csibbitt csibbitt commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

This was reported informally as a bug against this example alert: https://github.com/openstack-k8s-operators/telemetry-operator/blob/main/docs/sample-alerts/openstack-observability-services-status.yaml#L23

User states that the Pod label doesn't exist.

This labelDrop configuration dates back to STF, when none of the OSP17 services ran in OCP. These labels were meaningless/misleading at the time, always reflecting values of the smart-gateway rather than the actual services in question (nothing in the OSP17 control-plane ran in a "pod" or "namespace", and the "job" was always the same).

I've opted to continue to drop "publisher", concurring with @jlarriba 's opinion on the matter. I've checked it and the publisher is "ceilometer" on 171 series in my environment, and "ceilometer-0" on 1 series. That's a question I'm not going to tackle right now, but the label doesn't seem terribly useful, so we'll continue to drop it.

@coderabbitai

coderabbitai Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 496ab9ec-d727-48ee-8943-afc0360ea8dc


Comment @coderabbitai help to get the list of available commands.

@csibbitt

csibbitt commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Testing

After running my patched telemetry-operator and confirming the change in the secret, I can see that the "pod" label now exists.

$ curl -kg 'https://localhost:9090/api/v1/query' --data 'query=kube_pod_info{created_by_kind=~"ReplicaSet|StatefulSet|OpenStackClient"} * on(uid) group_left(phase) (kube_pod_status_phase{phase!="Running"} == 1)'

{"status":"success","data":{"resultType":"vector","result":[{"metric":{"created_by_kind":"StatefulSet","created_by_name":"alertmanager-metric-storage","host_network":"false","instance":"kube-state-metrics.openstack.svc:8080",
"job":"scrapeConfig/openstack/telemetry-ksm",
"namespace":"openstack","phase":"Pending",
"pod":"alertmanager-metric-storage-1",
"uid":"fcf7d915-6609-48c7-ba3f-fc6b70e3da5b"},"value":[1788892552.855,"1"]}]}}

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/af7185e7c4fb49f1a7bbd9eaf9032ec6

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 57m 58s
❌ telemetry-operator-multinode-cloudkitty FAILURE in 1h 16m 01s
✔️ telemetry-openstack-meta-content-provider-all-services-master SUCCESS in 1h 58m 12s
❌ telemetry-operator-multinode-master FAILURE in 1h 15m 18s
✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 47m 44s
✔️ telemetry-operator-multinode-default-telemetry SUCCESS in 1h 28m 44s
✔️ functional-tests-osp18 SUCCESS in 2h 23m 41s

@vyzigold

vyzigold commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

There are checks for the labeldrops in the kuttl tests. Those will need to be adjusted as well. For example https://github.com/openstack-k8s-operators/telemetry-operator/blob/main/test/kuttl/tests/metricstorage/01-assert.yaml#L44

@csibbitt

csibbitt commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

There are checks for the labeldrops in the kuttl tests. Those will need to be adjusted as well. For example https://github.com/openstack-k8s-operators/telemetry-operator/blob/main/test/kuttl/tests/metricstorage/01-assert.yaml#L44

Yes, thank you, I will adjust.

@csibbitt
csibbitt force-pushed the csibbitt_OSPRH-36638_bad_labeldrops branch from 105dba4 to 0a0ffeb Compare September 9, 2026 16:28
@csibbitt

csibbitt commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/1c664988d8c94983948d87eab0784cf9

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 47m 53s
✔️ telemetry-operator-multinode-cloudkitty SUCCESS in 1h 24m 24s
✔️ telemetry-openstack-meta-content-provider-all-services-master SUCCESS in 2h 03m 45s
✔️ telemetry-operator-multinode-master SUCCESS in 1h 24m 48s
❌ openstack-k8s-operators-content-provider FAILURE in 14m 50s
⚠️ telemetry-operator-multinode-default-telemetry SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ functional-tests-osp18 SUCCESS in 2h 20m 24s

@karelyatin

Copy link
Copy Markdown
Contributor

recheck failure related to go proxy

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/6c3534c484cb4479bd94bcc582c842be

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 3h 09m 20s
✔️ telemetry-operator-multinode-cloudkitty SUCCESS in 1h 31m 08s
✔️ telemetry-openstack-meta-content-provider-all-services-master SUCCESS in 2h 26m 46s
❌ telemetry-operator-multinode-master FAILURE in 1h 25m 32s
✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 59m 47s
✔️ telemetry-operator-multinode-default-telemetry SUCCESS in 1h 26m 48s
✔️ functional-tests-osp18 SUCCESS in 2h 22m 36s

@csibbitt

Copy link
Copy Markdown
Contributor Author

recheck

@csibbitt

Copy link
Copy Markdown
Contributor Author

/retest

@centosinfra-prod-github-app

Copy link
Copy Markdown

This was reported informally as a bug agaisnt this example alert: https://github.com/openstack-k8s-operators/telemetry-operator/blob/main/docs/sample-alerts/openstack-observability-services-status.yaml#L23

User states that Pod label doesn't exist.

This labelDrop configuration dates back to STF, when none of the OSP17 services ran in OCP. These labels were meaningless/misleading at the time, always reflecting values of the smart-gateway rather than the actual services in question (nothing in the OSP17 control-plane ran in a "pod" or "namespace", and the "job" was always the same).

I've opted to continue to drop "publisher", concurring with Juan's opinion on the matter. I've checked it and says "ceilometer" on 171 series in my environment, and "ceilometer-0" on 1 series. That's a question I'm not going to tackle right now, but the label doesn't seem terribly useful, so we'll continue to drop it.
@csibbitt
csibbitt force-pushed the csibbitt_OSPRH-36638_bad_labeldrops branch from 0a0ffeb to 4c9ffaf Compare September 11, 2026 16:06
@openshift-ci openshift-ci Bot removed the lgtm label Sep 11, 2026
@csibbitt

Copy link
Copy Markdown
Contributor Author

/retest

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/eee2b394168e424fadaf96f5d04cd909

❌ telemetry-openstack-meta-content-provider-master FAILURE in 12m 23s
⚠️ telemetry-operator-multinode-cloudkitty SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master
❌ telemetry-openstack-meta-content-provider-all-services-master FAILURE in 28m 27s
⚠️ telemetry-operator-multinode-master SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-all-services-master
✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 44m 08s
✔️ telemetry-operator-multinode-default-telemetry SUCCESS in 1h 30m 38s
✔️ s2i-openstack-container-content-provider SUCCESS in 2h 44m 01s (non-voting)
✔️ s2i-deployment-test-telemetry SUCCESS in 2h 25m 50s (non-voting)
⚠️ functional-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master

@vyzigold

Copy link
Copy Markdown
Contributor

recheck seems like a dependency download issue

@vyzigold

Copy link
Copy Markdown
Contributor

/retest

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/1d869905eb1e402bb4acd0285b2b23da

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 39m 08s
❌ telemetry-operator-multinode-cloudkitty RETRY_LIMIT in 4m 29s
❌ telemetry-openstack-meta-content-provider-all-services-master FAILURE in 33m 36s
⚠️ telemetry-operator-multinode-master SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-all-services-master
✔️ openstack-k8s-operators-content-provider SUCCESS in 33m 39s
❌ telemetry-operator-multinode-default-telemetry RETRY_LIMIT in 4m 26s
✔️ s2i-openstack-container-content-provider SUCCESS in 33m 27s (non-voting)
❌ s2i-deployment-test-telemetry RETRY_LIMIT in 4m 36s (non-voting)
❌ functional-tests-osp18 RETRY_LIMIT in 4m 32s

@csibbitt

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/a7821bde87334b1996d1a92e6ffb12d7

❌ telemetry-openstack-meta-content-provider-master FAILURE in 12m 47s
⚠️ telemetry-operator-multinode-cloudkitty SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master
✔️ telemetry-openstack-meta-content-provider-all-services-master SUCCESS in 2h 20m 19s
✔️ telemetry-operator-multinode-master SUCCESS in 1h 39m 42s
❌ openstack-k8s-operators-content-provider FAILURE in 7m 15s
⚠️ telemetry-operator-multinode-default-telemetry SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ s2i-openstack-container-content-provider SUCCESS in 7m 50s (non-voting)
⚠️ s2i-deployment-test-telemetry SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider (non-voting)
⚠️ functional-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master

@csibbitt

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build succeeded (check pipeline).
https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/54403f44b695418297e1b267bea0c170

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 10m 59s
✔️ telemetry-operator-multinode-cloudkitty SUCCESS in 1h 31m 10s
✔️ telemetry-openstack-meta-content-provider-all-services-master SUCCESS in 2h 49m 42s
✔️ telemetry-operator-multinode-master SUCCESS in 1h 37m 08s
✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 04m 52s
✔️ telemetry-operator-multinode-default-telemetry SUCCESS in 1h 28m 29s
❌ s2i-openstack-container-content-provider FAILURE in 3m 21s (non-voting)
⚠️ s2i-deployment-test-telemetry SKIPPED Skipped due to failed job s2i-openstack-container-content-provider (non-voting)

@vkmc vkmc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, happy to see this fix... we need those labels!

@openshift-ci

openshift-ci Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: csibbitt, jlarriba, vkmc

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

The pull request process is described 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

@openshift-merge-bot
openshift-merge-bot Bot merged commit e2a0cb4 into openstack-k8s-operators:main Sep 16, 2026
8 checks passed
@vyzigold

Copy link
Copy Markdown
Contributor

@csibbitt I'm gonna cherry-pick this through to FR7. I have 2 reasons:

@vyzigold

Copy link
Copy Markdown
Contributor

/cherry-pick 18-stable

@openshift-cherrypick-robot

Copy link
Copy Markdown

@vyzigold: new pull request created: #1112

Details

In response to this:

/cherry-pick 18-stable

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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.

6 participants