burningalchemist / sql_exporter

Database-agnostic SQL Exporter for Prometheus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clickhouse `context deadline exceeded`

YangNianYi opened this issue · comments

log:
ts=2024-03-12T09:53:43.525Z caller=klog.go:94 level=debug func=Infof msg="[target=clickhouse] Database handle successfully opened with 'clickhouse' driver"
ts=2024-03-12T09:53:53.525Z caller=klog.go:134 level=error func=Errorf msg="Error gathering metrics: [from Gatherer #1] [target=clickhouse] context deadline exceeded"

I try the sql use clickhouse-client, execution fast and success.

any idea?

Hey @YangNianYi, It's the connection issue. Could you please share your connection string (with sensitive data redacted)?