redpanda-data/kminion

ENDTOEND_ENABLE env value is not working

rjshrjndrn opened this issue · 4 comments

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

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?

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

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.

Hi @weeco

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