-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Bug]: strimzi operator doesn't expose content-type in /metrics endpoint #10902
Comments
So, what is the correct content type? |
The Prometheus JMX Exporter in the Kafka brokers uses |
Because that is the operator. It is different for the other components such as the Kafka pods.
Not sure how the protocols translate to content types. But I guess we can assume Update: Seems to be mentioned here as well: https://prometheus.io/docs/instrumenting/exposition_formats/#basic-info |
then yeah text/plain; version=0.0.4 should be good |
Signed-off-by: Jakub Scholz <[email protected]>
Ok, I opened a PR for it. But I do not have any Prometheus 3 installation. So I cannot really test it with that. I only verified that my old Prometheus still works and that the Content-Type is there when trying with |
@scholzj could i build the operator docker image from your PR and then run it with my prom v3 ? |
Bug Description
after upgrading to Prometheus v3, we noticed it started to alert us on TargetDown for strimzi operator pods
the error from the logs are
non-compliant scrape target sending blank Content-Type and no fallback_scrape_protocol specified for target
Steps to reproduce
Expected behavior
prometheus v3 should scrape without any issues
Strimzi version
0.44.0
Kubernetes version
1.30.5
Installation method
helm chart
Infrastructure
GKE
Configuration files and logs
podmonitor config we used
Additional context
No response
The text was updated successfully, but these errors were encountered: