Skip to content

NichUK/PrometheusSorter

Repository files navigation

PrometheusSorter

This little Node/Express app attempts to bridge the annoying gap between Prometheus who believe that sorting should be the domain of the display layer, and Grafana who believe that sorting should be done by the data layer.

Maybe one day of them will JFDI and this app will can be retired for good!

Usage:

node app.js http://prometheus.url/api/v1

then add:

orderby(label) to sort alphabetically or
orderby(d(label)) to sort alphabetically descending
orderby(num(label)) to sort numerically to the end of a Prometheus query
orderby(numd(label)) to sort numerically descending

Use or abuse this application for whatever purposes you like, business or pleasure, but any problems you may encounter are entirely your own problem.

Pull requests welcome if you find a problem, or have a cool extension or deployment. Also please excuse the everything, this is my first Node/Express app so I'm learning all the things.

Nich
[email protected]

About

Prometheus Sorting Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published