/promcurl

Colorize Prometheus metric output in the terminal

Primary LanguageGoMIT LicenseMIT

promcurl

Build Tag Go Version PkgGoDev Go Report Card License: MIT

Colorize Prometheus metric output on the terminal.

   
promcurl -u http://prmths/metrics screenshot1
promcurl -n -u http://prmths/metrics
(--nocomments)
screenshot2

Colors are chosen sensibly to be readable on both dark and bright terminal profiles, but having a darker terminal is better.

Install

Either download a precompiled binary ...

Available for Linux and MacOS: Latest Release

... or use go get

go get github.com/danielb42/promcurl

Contribute

Pull requests welcome for parsing corner cases or improving coloring.