redpanda-data / kminion

KMinion is a feature-rich Prometheus exporter for Apache Kafka written in Go. It is lightweight and highly configurable so that it will meet your requirements.
MIT License
616 stars 123 forks source link

ENDTOEND_ENABLE env value is not working #179

Open rjshrjndrn opened 1 year ago

rjshrjndrn commented 1 year ago

Hi,

First of all, thank you for this amazing exporter.

docker run -p 9080:8080 -e ENDTOEND_ENABLED=true -e KAFKA_TLS_ENABLED=true -e KAFKA_BROKERS=b-1.xxxxx.amazonaws.com:9094 vectorized/kminion:v2.2.1

But the end to end monitoring is not working because the yaml config says endToend and in the config parser, all config is converted to small case.

Would it help to change the endToEnd to endtoend ?

weeco commented 1 year ago

Hey @rjshrjndrn , we had the same issue in https://github.com/redpanda-data/console . We fixed this as shown here: https://github.com/redpanda-data/console/blob/a0408520cedfdd73f4f444ddbfd364faceeb0b5f/backend/pkg/config/config.go#L162-L177

Are you interested in contributing something similar in KMinion?

rjshrjndrn commented 1 year ago

Sure. I'll give it a go. Thanks for the reference.

doxsch commented 8 months ago

We had a similar problem. However, we wanted to overwrite values from the config file using environment variables. I submitted a fix for this in #231. However, I was correctly pointed out by @weeco that this does not fix the problem here. The workaround he linked and suggested fixes it in any case and not only when a config file is specified using CONFIG_FILEPATH. That's why I submitted his workaround in #245.

doxsch commented 6 months ago

Hi @weeco

Let me know if there’s anything more I can help with to get this change merged.