go-graphite / buckytools

Go implementation of useful tools for dealing with Graphite's Whisper DBs and Carbon hashing
Other
19 stars 8 forks source link

Make bucky go-carbon aware #8

Closed azhiltsov closed 1 year ago

azhiltsov commented 6 years ago

go-carbon with enabled carbonserver every scan-frequency https://github.com/lomik/go-carbon/blame/master/README.md#L305 does a directory walk in order to build in-memory index. This index is available in go-carbon with /metrics/list handler https://github.com/lomik/go-carbon/blob/master/carbonserver/list.go#L40

It would be nice to teach the buckyd to utilize this functionality instead of forcing it to traverse the directory tree. Can be implemented as a parameter at buckyd invocation with host:port of go-carbon, leaving -f invocation on bucky client intact.

azhiltsov commented 1 year ago

Fixed in #46 https://github.com/go-graphite/buckytools/pull/46