Because I’ve been asked this a lot, I provided a smat step-by-step instruction to setup Grafana with my dashboard. Hope this works and will help people to get started.
-
Step: Install Grafana (http://docs.grafana.org/installation/debian/) & start it
-
Step: In .gaiad/config.toml set prometheus=true
-
Step: Restart gaiad to apply config changes
-
Step: Download prometheus (https://prometheus.io/docs/introduction/first_steps/), edit prometheus.yml
Add the following:# COSMOS MONITORING # The job name is added as a label `job=<job_name>` to any timeseries scraped$ - job_name: 'cosmops' # metrics_path defaults to '/metrics' # scheme defaults to 'http'. static_configs: - targets: ['localhost:26660'] labels: group: 'cosmops'
-
Step: start prometheus with: ./prometheus --config.file=prometheus.yml
-
Step: Open Grafana in Browser & Do initial Setup
-
Step: Under Configuration -> Data Source -> Add a new Data Source
Name: CosmosDataSource
Type: Prometheus
URL: http://localhost:9090
Scrape Interval: 5s
Rest is Default
-> Save&Test should add DataSource
- Step: In Grafana goto Dashboard -> Import
- Step: Paste 7044 (this is my Dashboard template for Grafana), Choose “CosmosDataSource” as Data Source
- Step: You should now have a working Dashboard