项目作者: metalmatze

项目描述 :
Browse Prometheus metrics of apps and exporters more quickly.
高级语言: Go
项目地址: git://github.com/metalmatze/prom-metric-viewer.git
创建时间: 2017-04-07T16:21:56Z
项目社区:https://github.com/metalmatze/prom-metric-viewer

开源协议:Apache License 2.0

下载


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).

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

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

Usage

Examples:

  1. # Gets the metrics and prints them on your terminal
  2. prom-metric-viewer https://localhost:9100/metrics
  3. # Gets the metrics and starts a web UI on localhost:8080
  4. prom-metric-viewer --web https://localhost:9100/metrics
  5. # Reads the metrics from a file and prints them on your terminal
  6. prom-metric-viewer -f examples/node-exporter
  7. # Reads the metrics from a file and starts a web UI on localhost:8080
  8. prom-metric-viewer --web -f examples/node-exporter
  9. # Sort by name, type or help
  10. prom-metric-viewer --sort name -f examples/node-exporter