kminion icon indicating copy to clipboard operation
kminion copied to clipboard

ENDTOEND_ENABLE env value is not working

Open rjshrjndrn opened this issue 2 years ago • 4 comments
trafficstars

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 ?

rjshrjndrn avatar Dec 14 '22 08:12 rjshrjndrn

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?

weeco avatar Dec 14 '22 11:12 weeco

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

rjshrjndrn avatar Dec 14 '22 12:12 rjshrjndrn

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 avatar Feb 13 '24 20:02 doxsch

Hi @weeco

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

doxsch avatar Apr 16 '24 19:04 doxsch