prom-metric-viewer

command module
v0.0.0-...-7ee6dd3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2017 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

prom-metric-viewer

A simple CLI tool to view prometheus metrics of exporters with style. It also includes a fancy Web UI to be even quicker viewing, sorting and searching metrics.

screenrecording.gif

Install

Binaries

Find a binary for your OS on the releases page and download it. Make it executable (e.g. chmod +x prom-metric-viewer) and run it!

From Source

Dependencies: Go 1.8+ (with $GOPATH setup), Node.js (best with yarn).

go get -u -v github.com/metalmatze/prom-metric-viewer
cd $GOPATH/src/github.com/metalmatze/prom-metric-viewer
make deps ui packr install

You are now able to run prom-metric-viewer from anywhere on your system.

Usage

Examples:

# Gets the metrics and prints them on your terminal
prom-metric-viewer https://localhost:9100/metrics 
# Gets the metrics and starts a web UI on localhost:8080
prom-metric-viewer --web https://localhost:9100/metrics 

# Reads the metrics from a file and prints them on your terminal
prom-metric-viewer -f examples/node-exporter 
# Reads the metrics from a file and starts a web UI on localhost:8080
prom-metric-viewer --web -f examples/node-exporter 

# Sort by name, type or help
prom-metric-viewer --sort name -f examples/node-exporter 

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址