go-pluto / styx

Export Data from Prometheus to csv, gnuplot & matplotlib
https://speakerdeck.com/metalmatze/prometheus-styx
MIT License
99 stars 24 forks source link

Upgrade CLI to v2 and added arbitrary ranges #15

Closed mfranzil closed 1 year ago

mfranzil commented 1 year ago

Hi,

I made a few modifications to your project, as I needed to be able to retrieve an arbitrary range in time from Prometheus without just telling a duration.

I took the opportunity of upgrading the cli package to v2, and cleaned up some code. I plan on making some more modifications, but you may find the code here.

https://github.com/mfranzil/styx

I can open a PR if you're interested.

metalmatze commented 1 year ago

Hey!

That's really cool! Definitely post a PR and we can discuss which pieces etc to take into the project. If they aren't too crazy it should be fine.

mfranzil commented 1 year ago

Done! See #16. Probably some more edits are needed (or we can cherry-pick some modifications), but let me know what you think about it!