Quick Start
Connect to Prometheus
If Prometheus is already running locally:
grafatui --prometheus-url http://localhost:9090
Point Grafatui at another Prometheus server with the same option:
grafatui --prometheus-url http://prometheus.example.com:9090
Import a Grafana Dashboard
Export a Grafana dashboard as JSON, then pass it to Grafatui:
grafatui --prometheus-url http://localhost:9090 --grafana-json ./dashboard.json
Override dashboard variables with repeated --var options:
grafatui --grafana-json ./dash.json --var job=node --var instance=server-01
Run the Demo
The repository includes a Prometheus demo stack and sample dashboards:
git clone https://github.com/fedexist/grafatui.git
cd grafatui
cd examples/demo && docker-compose up -d && sleep 5 && cd ../..
cargo run -- --grafana-json examples/dashboards/prometheus_demo.json --prometheus-url http://localhost:19090
When finished:
cd examples/demo
docker-compose down -v
Useful First Keys
| Key | Action |
|---|---|
q | Quit |
r | Force refresh |
+ / - | Zoom out / in |
[ / ] | Pan left / right |
f / Enter | Fullscreen selected panel |
v | Inspect values |
/ | Search panels |