https://github.com/metalmatze/prom-metric-viewer
Browse Prometheus metrics of apps and exporters more quickly.
https://github.com/metalmatze/prom-metric-viewer
golang monitoring prometheus vuejs2
Last synced: 4 months ago
JSON representation
Browse Prometheus metrics of apps and exporters more quickly.
- Host: GitHub
- URL: https://github.com/metalmatze/prom-metric-viewer
- Owner: metalmatze
- License: apache-2.0
- Archived: true
- Created: 2017-04-07T16:21:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T07:50:35.000Z (almost 8 years ago)
- Last Synced: 2025-01-10T17:32:24.872Z (5 months ago)
- Topics: golang, monitoring, prometheus, vuejs2
- Language: Go
- Homepage:
- Size: 10.5 MB
- Stars: 53
- Watchers: 4
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.
## Install
### Binaries
Find a binary for your OS on the [releases](https://github.com/metalmatze/prom-metric-viewer/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).
```bash
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:
```bash
# 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
```