# Setting up a Grafana Dashboard for Cardano Pool

**URL:** <https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062>\
**Category:** Setup a Stake Pool\
**Tags:** cardano\
**Created:** [1 July 2021 13:57 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062 "2021-07-01T13:57:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SNSKY](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@SNSKY](https://forum.cardano.org/u/SNSKY)\
**Post date:** [1 July 2021 13:57 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/1 "2021-07-01T13:57:26Z")

</div>

Once you have sucessfully set-up a Cardano pool, then comes the most beautifull part - setting up your Dashboard and Alerts! You surely dont want to gaze the PC whole day, or?

I found it difficult to get all the information at one place so am writing this documentaion and hopeully it helps others as well. This tutorial is for education and learning purpose only.

**Prerequisites:**

- Ubuntu Server 20.04 LTS (for Ubuntu 18.04 LTS please follow the alternative steps)

- Cardano Block Producer Node (PN) up and running

- Cardano Relay Nodes (RN) up and running

**Content**

**[1. Install prometheus node exporter on Block Producing Node](https://sanskys.de/dashboard/#Install+prometheus+node+exporter+on+Block+Producing+Node)**

**[2. Install Prometheus and prometheus node exporter on Relay Node](https://sanskys.de/dashboard/#Install+Prometheus+and+prometheus+node+exporter+on+Relay+Node)**

**[3. Install Grafana on Relay Node](https://sanskys.de/dashboard/#Install+Grafana+on+Relay+Node)**

**[4. Setting up Grafana Dashboard](https://sanskys.de/dashboard/#Setting+up+Grafana+Dashboard)**

**[5. Add Data from Adapools to the Dashboard](https://sanskys.de/dashboard/#Add+Data+from+Adapools+to+the+Dashboard)**

[**6. Optional but Usefull: Add Live Data to your Dashboard using PoolData.Live API**](https://sanskys.de/dashboard/#Optional+but+Usefull%3A+Add+Live+Data+to+your+Dashboard+using+PoolData.Live+API)

[**7. As last step let’s now setup Grafana Alerting and Email Notifications**](https://sanskys.de/dashboard/#As+last+step+let%27s+now+setup+Grafana+Alerting+and+Email+Notifications)

[**Recommended: Disabling Grafana Registrations and Anonymous Access**](https://sanskys.de/dashboard/#Recommended%3A+Disabling+Grafana+Registrations+and+Anonymous+Access)

**1. Install prometheus node exporter on Block Producing Node**

for Ubuntu 20.04

$ sudo apt-get install -y prometheus-node-exporter

$ sudo systemctl enable prometheus-node-exporter.service

for **Ubuntu 18.04 install node\_exporter as prometheus-node-exporter does not expose all metrics**

$ cd $HOME/git  
$ wget [https://github.com/prometheus/node\_exporter/releases/download/v1.1.2/node\_exporter-1.1.2.linux-amd64.tar.gz](https://github.com/prometheus/node_exporter/releases/download/v1.1.2/node_exporter-1.1.2.linux-amd64.tar.gz) (choose your right server version)  
$ tar xvfz node\_exporter-1.1.2.linux-amd64.tar.gz

$ sudo cp node\_exporter-1.1.2.linux-amd64/node\_exporter /usr/local/bin

$ chown node\_exporter:node\_exporter /usr/local/bin/node\_exporter

$ cd /etc/systemd/system

$ sudo nano node\_exporter.service

Then, paste the following configuration for your service.

#############################

[Unit]  
Description=Node Exporter  
Wants=network-online.target  
After=network-online.target

[Service]  
User=  
ExecStart=/usr/local/bin/node\_exporter  
[Install]  
WantedBy=default.target

#############################

Exit nano, reload your daemon, and start your service.

$ sudo systemctl daemon-reload

$ sudo systemctl start node\_exporter

$ sudo systemctl enable node\_exporter.service

for **Ubuntu 18.04 use from now on in the tutorial the node\_exporter.service instead of prometheus-node-exporter.service**

Update mainnet-config.json config files with new hasEKG and has Prometheus ports.

$ cd $NODE\_HOME  
$ sed -i mainnet-config.json -e “s/127.0.0.1/0.0.0.0/g”

On PN you need to open ports 12798 and 9100

$ sudo ufw allow proto tcp from to any port 9100

$ sudo ufw allow proto tcp from to any port 12798

$ sudo ufw reload

restart the node

$ sudo systemctl restart

**2. Install Prometheus and prometheus node exporter on Relay Node**

install Prometheus

$ sudo apt-get install -y prometheus

Install prometheus node exporter on RN (Ubuntu 20.04)

$ sudo apt-get install -y prometheus-node-exporter

for Ubuntu 18.04 repeat the steps of PN above in the RN as well and install the node\_exporter service instead

repeat Step 2 for all your RN

**3. Install Grafana on Relay Node**

$ wget -q -O - [https://packages.grafana.com/gpg.key](https://packages.grafana.com/gpg.key) | sudo apt-key add -

$ echo “deb [https://packages.grafana.com/oss/deb](https://packages.grafana.com/oss/deb) stable main” \> grafana.list  
$ sudo mv grafana.list /etc/apt/sources.list.d/grafana.list

$ sudo apt-get update && sudo apt-get install -y grafana

Enable services so they start automatically

$ sudo systemctl enable grafana-server.service  
$ sudo systemctl enable prometheus.service  
$ sudo systemctl enable prometheus-node-exporter.service

Update prometheus.yml located in /etc/prometheus/prometheus.yml

Change the in the following command

$ cat \> prometheus.yml \<\< EOF  
global:  
scrape\_interval: 15s # By default, scrape targets every 15 seconds.

# Attach these labels to any time series or alerts when communicating with

# external systems (federation, remote storage, Alertmanager).

external\_labels:  
monitor: ‘codelab-monitor’

# A scrape configuration containing exactly one endpoint to scrape:

# Here it’s Prometheus itself.

scrape\_configs:

# The job name is added as a label job=\<job\_name\> to any timeseries scraped from this config.

- job\_name: ‘prometheus’

static\_configs:

- targets: [‘localhost:9100’]

labels:  
alias: ‘relaynode1’  
type: ‘cardano-node’

- targets: [‘\<relay node 2 public ip address\>:9100’]

labels:  
alias: ‘relaynode2’  
type: ‘cardano-node’

- targets: [‘:9100’]

labels:  
alias: ‘block-producer-node’  
type: ‘cardano-node’

- targets: [‘localhost:12798’]  
labels:  
alias: ‘relaynode1’  
type: ‘cardano-node’

- targets: [‘\<relay node 2 public ip address\>:12798’]

labels:  
alias: ‘relaynode2’  
type: ‘cardano-node’

- targets: [‘:12798’]  
labels:  
alias: ‘block-producer-node’  
type: ‘cardano-node’

EOF

if you have more than two RNs, add all your Relays as new “targets” in the config above

$ sudo mv prometheus.yml /etc/prometheus/prometheus.yml

restart the services

$ sudo systemctl restart grafana-server.service  
$ sudo systemctl restart prometheus.service  
$ sudo systemctl restart prometheus-node-exporter.service

Verify that the services are running properly

$ sudo systemctl status grafana-server.service prometheus.service prometheus-node-exporter.service

On RN open ports 3000 for Grafana

$ sudo ufw allow from to any port 3000

**4. Setting up Grafana Dashboard**

On RN, open [http://localhost:3000](http://localhost:3000) or http://:3000 in your local browser.  
Login with admin / admin  
Change password

Click the configuration gear icon, then Add data Source  
Select Prometheus  
Set Name to “Prometheus”  
Set URL to [http://localhost:9090](http://localhost:9090)  
Click Save & Test

Download my Dashboard that you see on the top of this page, from the following GitHub link and save the JSON file

[https://raw.githubusercontent.com/sandy4de/SNSKY/main/SNSKY\_Dashboard\_v2.json](https://raw.githubusercontent.com/sandy4de/SNSKY/main/SNSKY_Dashboard_v2.json)

in Grafana, Click Create + icon (in left Menu) \> Import  
Add dashboard by Upload JSON file  
Click the Import button.

If you nodes are in several time zones, it is usefull to add the Grafan Clock panel

$ grafana-cli plugins install grafana-clock-panel

Installed panels are available immediately in the Dashboards section in your Grafana main menu.

To see a list of installed panels, click the Plugins item in the main menu. Both core panels and installed panels will appear.

**5. Add Data from Adapools to the Dashboard**

Copy your JSON link or your Pool ID from Share/Promote Tab and JSON data outputs in [apapools.org](http://apapools.org)

Prometheus can work only with numeric data, so we must first trim non numeric strings which is returned from the JSON file. Lets create a shell script getstat.sh for the same

###############################

cd /$NODE\_HOME

mkdir -p poolStat

cd poolStat

echo "curl [Cardano Explorer | Cexplorer.io](https://js.adapools.org/pools/)\< YOUR POOL ID \>/summary.json 2\>/dev/null \

| jq ‘.data | del(.pool\_id\_bech32, .hist\_bpe, .handles, .hist\_roa, .db\_ticker, .db\_name, .db\_url, .ticker\_orig, .group\_basic, .pool\_id, .direct, .db\_description, .tax\_ratio\_old, .tax\_fix\_old)’ \

| tr -d \"{},: \

| awk NF \

| sed -e ‘s/\[1\]\*/adapools\_/’ \> poolStat.prom" \> getstats.sh

chmod +x getstats.sh

./getstats.sh

###############################

check the content of adapools.prom and it should not contain only numeric values

$ nano poolStat.prom

Configure promethues-node-exporter.service to grab data from poolStat.prom file

$ sudo cp /lib/systemd/system/prometheus-node-exporter.service /lib/systemd/system/prometheus-node-exporter.service\_backup

$ sudo nano /lib/systemd/system/prometheus-node-exporter.service

Change ExecStart line to

##############################

ExecStart=/usr/bin/prometheus-node-exporter --collector.textfile.directory=\< YOUR NODE FULL PATH \>/poolStat --collector.textfile

##############################

Reload daemon and restart services

$ sudo systemctl daemon-reload

$ sudo systemctl restart prometheus-node-exporter.service

$ sudo systemctl restart prometheus.service

Now you should see in the Dashboard all Adapool statistics

Since the statistics will change, lets set cron job to update data from ADApools everyday

$ crontab -e

##############################

#Get data from ADApools every day at 06:00

0 6 \* \* \* /adapools/getstats.sh

##############################

Done!

**6. Optional but Usefull: Add Live Data to your Dashboard using PoolData.Live API**

In the method in Step 5 we get the data by running a cron job and so it’s not Live. In case you wish to have live data from the Mainnet for example to get immidiate Alerts in case your Pledge reduces or you have new delegators then the API from PoolData is very usefull. Additionaly, as in the adapools method we have to trim all non numeric strings we have limited metrics. With PoolData we have access to wider range of metrics like Delegator list.

As a first Step we need to install the Plugin - JSON

$ grafana-cli plugins install simpod-json-datasource

now login into your Grafana and under Configurations → Data sources section, click on “Add data source” - you will see the new JSON datasource available at the end of the list.

Now lets configure JSON to load your Pool data into grafana. Under HTTP Section and URL field paste the following:

[https://api.pooldata.live/cardano/](https://api.pooldata.live/cardano/)\< YOUR POOL ID \>

where \< YOUR POOL ID \> is the same ID that you got from [adapools.org](http://adapools.org) in Step 5

Now press “Save and test” and you will start receiving live data directly in your Dashboard.

**7. As last step let’s now setup Grafana Alerting and Email Notifications**

Setup SMTP in Grafana

$ sudo nano /etc/grafana/grafana.ini

Edit the SMTP section

#############################

[smtp]  
enabled = true  
host = smtp.:465  
user =

# If the password contains # or ; you have to wrap it with triple quotes. Ex “”“#password;”“”

password =   
from\_address = [sam@sanskys.de](mailto:sam@sanskys.de)  
from\_name = Grafana

#############################

Login to Grafana with username and password.

Click on the “Bell” icon on the left sidebar.

Select “Notification channels.”

Click on “Add Channel.” This will open a form for adding new notification channel.

Give a name to this channel. I am using “Alert”

Select Email from “Type” as we want to send notifications over email.

Check the “Send on all alerts” in case you want email on all alerts.

Select the checkbox of “Include image” in case you want to include the image of the panel as the body in the notification email.

Add the target email in “Email addresses” text area. You can use multiple email address separated by “;”

Click on “Send Test” if you want to verify your settings. This will send a sample email using the SMTP details we configured earlier.

Click on “Save” to add this channel

Create an Alert if PN is not reachable

Please not that Alerts can only be created for “Graph” panels!

Now we create an Alert to get an emaial if the PN is not reachable

In the “Connected Peers” panel go to Alerts

Define the Rule “Connected Peer Alert” Evaluate every “1m” For “2m”

Condition

WHEN “last()” OF “query(A, 1m, now)” “HAS NO VALUE”

No Data & Error Handling

If no data or all values are null SET STATE TO “No Data”

If execution error or timeout SET STATE TO “Alerting”

Notifications

Send To - Choose your notofication channel, which in my case is “Alert”

Message - type in your alert message that should appear in the email

Press on “test Rule” to ensure that the Alert is correct and has no issues.

Now you are done! Stop you PN and you should get an Alert within 4min.

If everything works, now you should have a smile on your face and if you wish you could donate me 1 ADA or delegate to my pool - Sam’s North SKY [SNSKY]

**addr1qyyhd8cpv4gmhr5axerhezhtzldrw4rp9ayf0fc6arnme4cg46du2qg366943uy0dw5yjmna7arfw265lu4r2fjccl4scf7xrw**

**Recommended: Disabling Grafana Registrations and Anonymous Access**

We should make Grafana a bit more sucure and to do so lets change two settings

$ sudo nano /etc/grafana/grafana.ini

Locate the following allow\_sign\_up directive under the [users] heading and change the line to as follows

##########

[users] # disable user signup / registration

allow\_sign\_up = false

##########

Next, locate the following enabled directive under the [auth.anonymous] heading and change the line to as follows

##########

[auth.anonymous]

enabled = false

##########

Save the file and exit your text editor and to activate the changes, restart Grafana:

$ sudo systemctl restart grafana-server

I have included a panel on Leadslots, which can Alert in case your pool is selected as a leader for the next Epoch. It is a bit more complicated, so will leave it out of the tutorial, but in principle there is script running on the PN which updates the leader query result in a prom file which is parsed by the node exporter, exposing this metrics to the RN. In case you wish to use it and need the details, just drop me a message on Telegram.

* * *

References:

> **[Monitoring Linux host metrics with the Node Exporter | Prometheus](https://prometheus.io/docs/guides/node-exporter/)**
>
> Prometheus project documentation for Monitoring Linux host metrics with the Node Exporter

> **[Configure notification policies | Grafana documentation](https://grafana.com/docs/grafana/latest/alerting/configure-notifications/create-notification-policy/)**
>
> Configure notification policies to determine how alerts are routed to contact points

> **[Guide: How to Set Up a Cardano Stake Pool | CoinCashew](https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node)**

> **[Level Up! - Monitoring - Add ADApools data](https://www.lvlup-stakepool.com/monitoring/adapools.html)**
>
> Add data from ADApools to your Grafana public dashboard

> **[How To Install and Secure Grafana on Ubuntu 18.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-grafana-on-ubuntu-18-04)**
>
> Grafana is an open-source data visualization and monitoring tool that integrates with complex data from sources like Prometheus, InfluxDB, Graphite, and Elas…

[https://forum.cardano.org/t/please-share-your-grafana-dashboards-for-cardano-node/](https://forum.cardano.org/t/please-share-your-grafana-dashboards-for-cardano-node/)

[https://pooldata.live/](https://pooldata.live/)

* * *

* * *

1. \t

---

<div class="post-metadata">

**Author:** ![SNSKY](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@SNSKY](https://forum.cardano.org/u/SNSKY)\
**Post date:** [1 July 2021 14:23 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/2 "2021-07-01T14:23:19Z")

</div>

![SNSKY](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/a/e/aeeccf3adf7437daded714c006ca5ef07df77a78.jpeg)

The dashboard would look like this

---

<div class="post-metadata">

**Author:** ![doc\_krieger](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@doc\_krieger](https://forum.cardano.org/u/doc_krieger)\
**Post date:** [2 July 2021 17:11 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/3 "2021-07-02T17:11:01Z")

</div>

Very nice!  
I followed your instructions but for some reason some of my panels arent showing up correctly:  
Do you have any idea why that would be?  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/0/6/062b08c0c88542fd87935c80ef04f29251af0f45.png)

---

<div class="post-metadata">

**Author:** ![doc\_krieger](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@doc\_krieger](https://forum.cardano.org/u/doc_krieger)\
**Post date:** [2 July 2021 17:14 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/4 "2021-07-02T17:14:13Z")

</div>

Also, you can add alerting via Telegram bot. Followed the guide by Eden pool and it works amazingly well:

[![](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/3/6/3671c05270a12bfe1884a43efded9e6da4aa1ec5.jpeg "How to Set-up Grafana Alerting via Telegram") ](https://www.youtube.com/watch?v=WmLOb1JLotw)

---

<div class="post-metadata">

**Author:** ![SNSKY](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@SNSKY](https://forum.cardano.org/u/SNSKY)\
**Post date:** [2 July 2021 17:32 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/5 "2021-07-02T17:32:38Z")

</div>

Thanks!  
It looks like the prometheus.yml is not updated and so you are not getting any data?

---

<div class="post-metadata">

**Author:** ![LuckySlam](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/luckyslam/32/25300_2.png) [@LuckySlam](https://forum.cardano.org/u/LuckySlam)\
**Post date:** [2 July 2021 18:21 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/6 "2021-07-02T18:21:15Z")

</div>

> **[Level Up! - Monitoring - Set alert rules and Telegram notifications to Grafana](https://www.lvlup-stakepool.com/monitoring/alert_telegram.html)**
>
> Set alert rules and Telegram notifications to Grafana

---

<div class="post-metadata">

**Author:** ![doc\_krieger](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@doc\_krieger](https://forum.cardano.org/u/doc_krieger)\
**Post date:** [2 July 2021 18:37 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/7 "2021-07-02T18:37:31Z")

</div>

I actually have the prometheus.yml set up pretty much exactly like yours. I’m getting metrics for most of the panels but some of them arent populating

---

<div class="post-metadata">

**Author:** ![SNSKY](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@SNSKY](https://forum.cardano.org/u/SNSKY)\
**Post date:** [2 July 2021 19:04 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/8 "2021-07-02T19:04:13Z")

</div>

Please check on port 9090 whether the promotheus is receiving the required metrics from all node exporters [http://localhost:9090/targets](http://localhost:9090/targets)  
If all targets are green and the metrics are being received then it is a panel issue…if some target is red or metrics are not being received then it would be a node exporter issue

---

<div class="post-metadata">

**Author:** ![AnkgorWat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/ankgorwat/32/43479_2.png) [@AnkgorWat](https://forum.cardano.org/u/AnkgorWat)\
**Post date:** [25 October 2021 15:14 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/9 "2021-10-25T15:14:11Z")

</div>

Thank you for your tutorial.

I am using CNTools and I am not able to get step 5 working. I’ve notice the path is different from your tutorial. Do you have any suggestions?

 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/5/2/521391f751eabec3404d69fabb6dbab2320ff00a.jpeg)

---

<div class="post-metadata">

**Author:** ![SNSKY](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@SNSKY](https://forum.cardano.org/u/SNSKY)\
**Post date:** [25 October 2021 17:29 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/10 "2021-10-25T17:29:14Z")

</div>

Thanks.  
If you mean this step:  
ExecStart=/usr/bin/prometheus-node-exporter --collector.textfile.directory=\< YOUR NODE FULL PATH \>/poolStat --collector.textfile

Then the path should be where poolStat directory was created. To find the full path you can try  
$ echo $NODE\_HOME

Hope it helps

---

<div class="post-metadata">

**Author:** ![AnkgorWat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/ankgorwat/32/43479_2.png) [@AnkgorWat](https://forum.cardano.org/u/AnkgorWat)\
**Post date:** [25 October 2021 18:15 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/11 "2021-10-25T18:15:02Z")

</div>

> [@SNSKY](#):
>
> Configure promethues-node-exporter.service to grab data from poolStat.prom file
> 
> $ sudo cp /lib/systemd/system/prometheus-node-exporter.service /lib/systemd/system/prometheus-node-exporter.service\_backup
> 
> $ sudo nano /lib/systemd/system/prometheus-node-exporter.service
> 
> Change ExecStart line to
> 
> ##############################
> 
> ExecStart=/usr/bin/prometheus-node-exporter --collector.textfile.directory=\< YOUR NODE FULL PATH \>/poolStat --collector.textfile

In CNTools I’ve changed the configuration to :  
sudo cp /opt/cardano/monitoring/systemd/node\_exporter.service /opt/cardano/monitoring/systemd/node\_exporter.service\_backup

sudo nano /opt/cardano/monitoring/systemd/node\_exporter.service

Change ExecStart line to

##############################

ExecStart= /opt/cardano/monitoring/systemd/node\_exporter.service  
–collector.textfile.directory=\< YOUR NODE FULL PATH \>/poolStat --collector.textfile

---

<div class="post-metadata">

**Author:** ![Thiago\_Rodrigues](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/thiago_rodrigues/32/44045_2.png) [@Thiago\_Rodrigues](https://forum.cardano.org/u/Thiago_Rodrigues)\
**Post date:** [28 October 2021 20:43 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/12 "2021-10-28T20:43:11Z")

</div>

## I had the same issue, but after understand better how Grafana and Prometheus works I noticed that my prometheus.yml config file was not correct. The correct syntax is like that:

static\_configs:

- Targets [‘PN IP:PN port’]  
Labels:  
Alias: ‘\<name\_of\_PN\>’  
type: ‘cardano-node’

* * *

You have to do that for each target and each port (For ex: 9100, 12798, or others you have used)

After that everything worked fine!

😉

---

<div class="post-metadata">

**Author:** ![SNSKY](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@SNSKY](https://forum.cardano.org/u/SNSKY)\
**Post date:** [2 November 2021 13:53 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/13 "2021-11-02T13:53:09Z")

</div>

I have been informed of a mistake in the tutorial. In Step 5 the cron setting should like this:

##############################

#Get data from ADApools every day at 06:00

0 6 \* \* \* / **poolStat** /getstats.sh

##############################

---

<div class="post-metadata">

**Author:** ![SNSKY](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@SNSKY](https://forum.cardano.org/u/SNSKY)\
**Post date:** [2 March 2022 12:30 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/14 "2022-03-02T12:30:31Z")

</div>

Tutorial Update:

> [@Grafana Dashboard Tutorial for Cardano Pool including Leader Panel](https://forum.cardano.org/t/grafana-dashboard-tutorial-for-cardano-pool-including-leader-panel/96836):
>
> Once you have sucessfully set-up a Cardano pool, then comes the most beautifull part - setting up your Dashboard and Alerts! You surely dont want to gaze the PC whole day, or? I found it difficult to get all the information at one place so am writing this documentaion and hopeully it helps others as well. This tutorial is for education and learning purpose only. Prerequisites: Ubuntu Server 20.04 LTS (for Ubuntu 18.04 LTS please follow the alternative steps) Cardano Block Producer Node (…

---

<div class="post-metadata">

**Author:** ![max\_ruas](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/max_ruas/32/44599_2.png) [@max\_ruas](https://forum.cardano.org/u/max_ruas)\
**Post date:** [9 June 2022 12:50 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/15 "2022-06-09T12:50:53Z")

</div>

Hi quick question, excuse me as I am a beginner here on cardano,  
I have set up my cardano-node, so far a stand alone on testnet do I only get the metrix for stuff like: “Cardano Last Block Height” or “Cardano Slot Height” on grafana and prometheus by API from adapools and my block producer node (POOL\_ID) once I finish my setup?  
Metrix for resource usage is fine. thanks in advance

 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/7/0/70d4f893c9b538459f71254f3bdf2cf37546f519.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/7/a/7a40e94239535af73135152212c2ad31041fae60.jpeg)

---

<div class="post-metadata">

**Author:** ![SNSKY](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@SNSKY](https://forum.cardano.org/u/SNSKY)\
**Post date:** [9 June 2022 14:48 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/16 "2022-06-09T14:48:40Z")

</div>

To get the and Slot and block heights you can use the following metrics  
cardano\_node\_metrics\_slotNum\_int  
cardano\_node\_metrics\_blockNum\_int

---

<div class="post-metadata">

**Author:** ![max\_ruas](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/max_ruas/32/44599_2.png) [@max\_ruas](https://forum.cardano.org/u/max_ruas)\
**Post date:** [9 June 2022 16:10 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/17 "2022-06-09T16:10:21Z")

</div>

It doesn’t work I’ve tried changing but no difference

 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/8/f/8f5c6662608513fe920f44d8e531660cb1cafc4e.jpeg)

---

<div class="post-metadata">

**Author:** ![max\_ruas](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/max_ruas/32/44599_2.png) [@max\_ruas](https://forum.cardano.org/u/max_ruas)\
**Post date:** [9 June 2022 16:25 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/18 "2022-06-09T16:25:50Z")

</div>

Cardano node is running

 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/7/4/74e74189a7aed3db2c11b0493ab81dd9d47ab949.jpeg)

---

<div class="post-metadata">

**Author:** ![os11k](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/os11k/32/43985_2.png) [@os11k](https://forum.cardano.org/u/os11k)\
**Post date:** [9 June 2022 16:45 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/19 "2022-06-09T16:45:37Z")

</div>

Hi @max_ruas !

Maybe those metrics are not being exported.

What you see if you try:

`curl -s ip-cardano-node:12798/metrics | grep grep cardano_node_metrics_slotNum_int`

If you run Grafana on same Linux box were is your node then you can try loopback IP:

`curl -s 127.0.0.1:12798/metrics | grep grep cardano_node_metrics_slotNum_int`

Keep in mind that I’m assuming that you are using default port for Prometheus on your cardano-node.

It can be changed in `testnet-config.json`

---

<div class="post-metadata">

**Author:** ![max\_ruas](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/max_ruas/32/44599_2.png) [@max\_ruas](https://forum.cardano.org/u/max_ruas)\
**Post date:** [9 June 2022 16:57 UTC](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062/20 "2022-06-09T16:57:40Z")

</div>

Hi thanks for helping 🙂 I see this which I like it but I’m not sure what to do with it

 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/0/2/02781d8c2591e2d92d8d26871627872dd38a09ee.jpeg)

[Next page](https://forum.cardano.org/t/setting-up-a-grafana-dashboard-for-cardano-pool/66062.md?page=2)
