Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kafka exporter #1947

Merged
merged 11 commits into from Sep 11, 2019
Merged

Conversation

sknot-rh
Copy link
Member

Signed-off-by: Stanislav Knot sknot@redhat.com

Type of change

  • Enhancement / new feature

Description

Added Kafka exporter

Checklist

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

  • Update/write design documentation in ./design
  • 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

@scholzj scholzj added this to the 0.14.0 milestone Aug 30, 2019
Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

I did a first quick pass and left some comments.

@scholzj
Copy link
Member

scholzj commented Aug 30, 2019

@ppatierno @tombentley Stanislav named it KafkaExporter. I think that shows respect to the project and its author. But at the same time I'm wondering if calling it lagMonitoring would be more versatile if we ever need to change it in the future.Although maybe if we ever need to change it, we will anyway be unable keep the API compatible and it might be anyway needed to add a new onject for it. WDYT?

@tombentley
Copy link
Member

I think we should only call it lagMonitoring if we could (in principle) replace it with something else. To do that we'd need whatever else to support all the exposed metrics and with the same names. So I suspect that means we should call it kafkaExporter, though that's not an idea name because it doesn't suggest "lag metrics" to anyone unfamiliar with that project.


String image = spec.getImage();
if (image == null) {
image = System.getenv().get("STRIMZI_DEFAULT_KAFKA_EXPORTER_IMAGE");
Copy link
Member

Choose a reason for hiding this comment

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

there is no constant defined elsewhere for this?

Copy link
Contributor

@PaulRMellor PaulRMellor left a comment

Choose a reason for hiding this comment

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

👍

sknot-rh and others added 6 commits September 11, 2019 04:07
Signed-off-by: Stanislav Knot <sknot@redhat.com>
Signed-off-by: Stanislav Knot <sknot@redhat.com>
Signed-off-by: Stanislav Knot <sknot@redhat.com>
Signed-off-by: Stanislav Knot <sknot@redhat.com>
…handle situations when KE is not enabled and fix the startup script

Signed-off-by: Jakub Scholz <www@scholzj.com>
Signed-off-by: Jakub Scholz <www@scholzj.com>
@scholzj
Copy link
Member

scholzj commented Sep 11, 2019

@ppatierno I (hopefully) addressed the comments, and fixed all the missing features:

  • SSL auth
  • Connecting to 9091 port
  • Startup srcipt
  • Handling of disabled KE
  • Container templates
  • etc.

Could you please review again?

Signed-off-by: Jakub Scholz <www@scholzj.com>
Signed-off-by: Jakub Scholz <www@scholzj.com>
Signed-off-by: Jakub Scholz <www@scholzj.com>
@scholzj
Copy link
Member

scholzj commented Sep 11, 2019

Ok, the tests and spotbugs now passing 🍾

…ed i ther continers

Signed-off-by: Jakub Scholz <www@scholzj.com>
Copy link
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.

I could of nits but overall LGTM.

Signed-off-by: Jakub Scholz <www@scholzj.com>
@scholzj scholzj merged commit 8eb55e4 into strimzi:master Sep 11, 2019
@sknot-rh sknot-rh deleted the kafka-exporter-integration branch October 18, 2019 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants