Skip to content

feat(examples,metrics,kube-state-metrics): extend configmap for 'KafkaConnect', 'KafkaConnector' and 'KafkaMirrorMaker2'#11354

Merged
im-konge merged 5 commits intostrimzi:mainfrom
sebastiangaiser:main
Jun 19, 2025
Merged

feat(examples,metrics,kube-state-metrics): extend configmap for 'KafkaConnect', 'KafkaConnector' and 'KafkaMirrorMaker2'#11354
im-konge merged 5 commits intostrimzi:mainfrom
sebastiangaiser:main

Conversation

@sebastiangaiser
Copy link
Copy Markdown
Contributor

Part of #10276

Type of change

Select the type of your PR

  • Enhancement / new feature

Description

Please check the commit messages

Checklist

Please go through this checklist and make sure all applicable tasks have been done

  • Write tests
  • Make sure all tests pass
  • Update documentation
  • Check RBAC rights for Kubernetes / OpenShift roles
  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
  • Reference relevant issue(s) and close them after merging
  • Update CHANGELOG.md
  • Supply screenshots for visual changes, such as Grafana dashboards

@ppatierno ppatierno added this to the 0.47.0 milestone Apr 22, 2025
Comment thread packaging/examples/metrics/kube-state-metrics/configmap.yaml Outdated
Comment thread packaging/examples/metrics/kube-state-metrics/configmap.yaml Outdated
Comment thread packaging/examples/metrics/kube-state-metrics/configmap.yaml Outdated
@ppatierno ppatierno requested review from a team and katheris May 5, 2025 15:08
@sebastiangaiser
Copy link
Copy Markdown
Contributor Author

sebastiangaiser commented May 13, 2025

Thanks for the review. I simply applied your suggestions 🚀

@sebastiangaiser sebastiangaiser requested a review from ppatierno May 13, 2025 13:42
Copy link
Copy Markdown
Member

@im-konge im-konge left a comment

Choose a reason for hiding this comment

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

So I tried the changes locally (I played with the Ready and NotReady states), everything seems to work fine:

https://gist.github.com/im-konge/3a6793a7f10bb543b3f1dc3044504195

so LGTM, thanks for the PR @sebastiangaiser !

@im-konge
Copy link
Copy Markdown
Member

im-konge commented Jun 5, 2025

@strimzi/maintainers could you please have a look on this? It's opened for quite a long time. Thanks

Copy link
Copy Markdown
Member

@katheris katheris left a comment

Choose a reason for hiding this comment

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

If my understanding is correct the metric mapping for KafkaMirrorMaker2 is incorrect since the field for the auto restart is different to KafkaConnector.

Comment thread packaging/examples/metrics/kube-state-metrics/configmap.yaml Outdated
@sebastiangaiser
Copy link
Copy Markdown
Contributor Author

Good catch, thanks 👍🏻

@sebastiangaiser sebastiangaiser requested a review from katheris June 10, 2025 15:02
@sebastiangaiser
Copy link
Copy Markdown
Contributor Author

Is the failed test /home/runner/work/strimzi-kafka-operator/strimzi-kafka-operator/systemtest/src/test/java/io/strimzi/systemtest/connect/ConnectST.java:[565,9] cannot find symbol related to my changes? 🤔

@im-konge
Copy link
Copy Markdown
Member

@sebastiangaiser I merged big PR rewriting a lot of things in our STs. Did you do rebase? Also, did you have any conflicts or something?

@im-konge
Copy link
Copy Markdown
Member

Actually, #11198 broke the main because of the PR wasn't rebased IMHO before merge. I'm gonna open a new PR fixing the issue on main. Sorry for the issues.

@im-konge
Copy link
Copy Markdown
Member

@sebastiangaiser I opened fix for the build #11523
Once merged, I will tag you here. Thanks and sorry for the issues.

@im-konge
Copy link
Copy Markdown
Member

@sebastiangaiser PR is merged, could you please rebase this PR? Thanks

Copy link
Copy Markdown
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

LGTM. @sebastiangaiser we just need it to be rebased to have the build passing. Thanks!

@im-konge
Copy link
Copy Markdown
Member

Hey @sebastiangaiser, could you please rebase this PR, so we can merge it eventually? The rebase should fix the error you see in the build pipeline, as I mentioned in previous comment. Thanks!

sebastiangaiser and others added 5 commits June 19, 2025 11:02
This is part of implementing https://github.com/strimzi/proposals/blob/main/087-monitoring-of-custom-resources.md

Signed-off-by: Sebastian Gaiser <sebastiangaiser@users.noreply.github.com>
…aConnect', 'KafkaConnector' and 'KafkaMirrorMaker2'

In order to implement https://github.com/strimzi/proposals/blob/main/087-monitoring-of-custom-resources.md the configmap is extended for 'KafkaConnect', 'KafkaConnector' and 'KafkaMirrorMaker2' resources.

Signed-off-by: Sebastian Gaiser <sebastiangaiser@users.noreply.github.com>
…afkaConnector' and 'KafkaMirrorMaker2'

Signed-off-by: Sebastian Gaiser <sebastiangaiser@users.noreply.github.com>
Co-authored-by: Paolo Patierno <paolo.patierno@gmail.com>
Signed-off-by: Sebastian Gaiser <sebastiangaiser@users.noreply.github.com>
Co-authored-by: Kate Stanley <11195226+katheris@users.noreply.github.com>
Signed-off-by: Sebastian Gaiser <sebastiangaiser@users.noreply.github.com>
@sebastiangaiser
Copy link
Copy Markdown
Contributor Author

Rebased, sorry for the delay. Didn't had a laptop with me over the last week.

@im-konge
Copy link
Copy Markdown
Member

Rebased, sorry for the delay. Didn't had a laptop with me over the last week.

No issues, sorry for two pings 🙂 we can merge this once the build pipeline is green. Thanks a lot once more!

@im-konge im-konge merged commit a81d2b2 into strimzi:main Jun 19, 2025
13 checks passed
@im-konge
Copy link
Copy Markdown
Member

Thanks for the PR @sebastiangaiser !

fvaleri pushed a commit to OwenCorrigan76/strimzi-kafka-operator that referenced this pull request Jun 24, 2025
…aConnect', 'KafkaConnector' and 'KafkaMirrorMaker2' (strimzi#11354)

Signed-off-by: Sebastian Gaiser <sebastiangaiser@users.noreply.github.com>
Co-authored-by: Paolo Patierno <paolo.patierno@gmail.com>
Co-authored-by: Kate Stanley <11195226+katheris@users.noreply.github.com>
@scholzj scholzj added this to Roadmap Aug 23, 2025
@scholzj scholzj moved this to 0.47.0 in Roadmap Aug 23, 2025
see-quick pushed a commit to see-quick/strimzi-kafka-operator that referenced this pull request Sep 4, 2025
…aConnect', 'KafkaConnector' and 'KafkaMirrorMaker2' (strimzi#11354)

Signed-off-by: Sebastian Gaiser <sebastiangaiser@users.noreply.github.com>
Co-authored-by: Paolo Patierno <paolo.patierno@gmail.com>
Co-authored-by: Kate Stanley <11195226+katheris@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 0.47.0

Development

Successfully merging this pull request may close these issues.

5 participants