cratedb-prometheus-adapter icon indicating copy to clipboard operation
cratedb-prometheus-adapter copied to clipboard

Check for connectivity on startup

Open surister opened this issue 1 year ago • 2 comments
trafficstars

Would it make sense to issue an SELECT 1 on startup and check if connectivity to CrateDB is possible with the given configuration? I'd say it would be helpful for users to get a clear 'Cannot connect to CrateDB', rather than some timeout error

wdyt @amotl ?

surister avatar Jul 17 '24 14:07 surister

If that would help, sure. I don't see any immediate downsides of this, and it would improve usability. When there are no objections by others, could you add that improvement?

/cc @WalBeh, @proddata, @hlcianfagna, @hammerhead, @matriv, @widmogrod

amotl avatar Jul 18 '24 00:07 amotl

Yep, I think it's good idea!

matriv avatar Jul 18 '24 08:07 matriv