Skip to content

Latest commit

 

History

History

grafana

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

below-grafana

Scripts / tools to visualize below data in grafana.

Example panel

Quickstart

To start Prometheus and Grafana, run:

$ docker compose up -d

To import some data from the localhost, run:

$ ./import.py host --begin "4h ago" --end "2h ago"

You may also import snapshots:

$ below snapshot --begin "20m ago" --end "now" -o thesnapshot
Snapshot has been created at thesnapshot

$ ./import.py thesnapshot

To start plotting graphs, visit http://localhost:3000 for the grafana UI. The initial login/password is admin and admin, respectively.

Details

The basic idea is we run both prometheus and grafana. We use prometheus as an intermediate time series database so that we don't have to implement a grafana datasource plugin.

We then export below's data in OpenMetrics format and import it into prometheus.