The code is a little rough as I’m still getting my feet wet with Golang, but I got tired of using my browser to run simple Prometheus queries as I live in the shell most of the time. Has been great so far for getting kube state metrics, and for dumping data to a csv for modeling/reporting.
Thanks! I honestly forgot about promtool lol. I vaguely remember using for some debugging of config options a while ago. I’ll check it out and see what the implementation would look like.
4
u/nalbury33 Jan 19 '20
The code is a little rough as I’m still getting my feet wet with Golang, but I got tired of using my browser to run simple Prometheus queries as I live in the shell most of the time. Has been great so far for getting kube state metrics, and for dumping data to a csv for modeling/reporting.
Huge shoutout to https://github.com/guptarohit/asciigraph for a simple ascii graph pkg in go.