graphite-project / carbonate

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

Couple of fixes/enhancements to carbon-path #23

Closed bitprophet closed 10 years ago

bitprophet commented 10 years ago

See commit list :)

tl;dr examples:

» carbon-list | head -n2 | carbon-path -p
/opt/graphite/storage/whisper/collector_time_ms.wsp
/opt/graphite/storage/whisper/mapr/cluster/collector_time_ms.wsp

» carbon-list | head -n2 | carbon-path -p | carbon-path -r
collector_time_ms
mapr.cluster.collector_time_ms

» carbon-list | head -n2 | carbon-path -p -d whatever | carbon-path -r
whatever.collector_time_ms
whatever.mapr.cluster.collector_time_ms

» carbon-list | head -n2 | carbon-path -p -d whatever | carbon-path -r -d whatever
collector_time_ms
mapr.cluster.collector_time_ms

» carbon-list | head -n2 | carbon-path -p -d /whatever/ | carbon-path -r -d whatever
collector_time_ms
mapr.cluster.collector_time_ms
bitprophet commented 10 years ago

Travis fail is due to a connection error on dependency installation; only affected one of the matrix cells, rest are green :)

jssjr commented 10 years ago

Hey! Sorry for the delay. I'll take a look at this ASAP.

bitprophet commented 10 years ago

No worries, I know how it is!

This reminds me that I think I've another PR waiting to submit that relies on this code, so uh...let me know if you want more after :D (https://github.com/bitprophet/carbonate/compare/carbon-stale - adds a stale-metrics checking tool)

bitprophet commented 10 years ago

Thanks! No good deed goes unpunished: I left you aforementioned new PR (#30) now that this is merged. As usual there is ZERO TIME PRESSURE from me on that :)