ClickHouse/clickhouse_exporter

Consider moving Exporter type to the library package

AlekSi opened this issue · 3 comments

That way it can be as a library by other processes.

There's a telemetry.address flag in the command you can use to set the port number.

Yeah, I know, but that's not I want. I want to reuse exporter logic in my process written in Go, not to run a separate process. One example of having most of the logic in the library is https://github.com/prometheus/mysqld_exporter – note how mysqld_exporter.go only parses flags and starts collector, and collector itself is a separate library package.

Thanks @AlekSi will look this week