go-graphite / graphite-ch-optimizer

Daemon to optimize GraphiteMergeTree automatically
MIT License
26 stars 8 forks source link

Issue setting username and password #12

Closed Farfaday closed 4 years ago

Farfaday commented 4 years ago

Hi ! I have been trying without success to set username and password in the server-dsn variable:

server-dsn = "tcp://localhost:9000?&optimize_throw_if_noop=1&receive_timeout=3600&debug=true&user=xxxxx&password=xxxxxx"

But starting

 graphite-ch-optimizer -n --log-level debug -c config.toml

[clickhouse]host(s)=localhost:9000, database=default, username=default
[clickhouse][dial] secure=false, skip_verify=false, strategy=random, ident=1, server=0 -> 127.0.0.1:9000
[clickhouse][connect=1][hello] -> Golang SQLDriver 1.1.54213

I still get username "default" here. Does someone have any hint ? Thanks!

Felixoid commented 4 years ago

Hey. Here's a manual how to set DSN

Farfaday commented 4 years ago

haaa ! Many thanks ! It is able to connect now !