graphite-project / carbonate

Utilities for managing graphite clusters
MIT License
516 stars 80 forks source link

Passing a file with metric names to carbon-lookup #117

Closed gerases closed 4 years ago

gerases commented 4 years ago

Hi,

I have a need to pass a file with metric names to carbon-lookup. Currently it seems to accept only a single metric name. Is there a way a clever way to use STDIN or a file with metric names currently?

I've seen the implementation of carbon-lookup and it's rather straightforward to take that as the base and write my own (tweaked) version that would take a file, but I would like to do that only as a last resort.

Thanks!

gerases commented 4 years ago

Actually, I can see that carbon-sieve is already doing what I want. I thought carbon-sieve looked at the actual whisper files on disk to make the determination, but it's using the hash calculation instead. Which is great.