Closed lainiwa closed 2 years ago
I'm not familiar with CH so I can't really help there unfortunately. You could check out the source and print some more information to see what exactly gets passed to CH.
Here's what I've found yet:
This format doesn't work: clickhouse://default:password@host:9000
But this does: clickhouse://host:9000?user=default&password=password
Works with native protocol, but not with http.
However, I tested it with two servers, and it would only work with the older one (21.12.2), but not with the newer (22.3.5 - says user/login incorrect). I'm not familiar with go and it's ecosystem, but I guess this could be bc some of the dependencies did not catch up with some recent changes (if any) in clickhouse auth protocol.
Could you bump the dependencies (or alternatively tell me how to do it myself) so I could test if my guess is correct?
Hey, can you checkout that branch and see if that works for you? If yes then I'll merge it to master, unfortunately I don't have a way to test it myself right now.
It wёrks! :)
A note on the credentials format: It is either that:
Either way, the URI that works for me now is clickhouse://user:password@host:9000
.
Another issue was could not load time location: unknown time zone
when running in docker.
It could be fixed in two ways:
- /usr/share/zoneinfo:/usr/share/zoneinfo:ro
tzdata
into the apk add
listAlthough either works, I like the latter more, as it doesn't rely on the host.
Thanks for checking, I added the tzdata
dependency too now. Once you confirm that everything is working I'll merge it and tag a new release.
Yes, my last message was about #63. Confirm, works like a charm.
Great, merged it and released it as v0.4.4. Thanks for testing this!
Hi! I'm trying to connect to my clickhouse. I place this in the yaml:
I then run
LOGLEVEL=debug sql_exporter
and get this output:Is it possible for me to debug it somehow? I checked and it works for clickhouse-client:
What might be the problem here?