How to Add Pool Data from Cexplorer to your Grafana Dashboard

UPDATED: 3/6/2026

Before we get started

This guide will walk you through the process of adding your pool stats from Cexploer.ioarrow-up-right to your Grafana dashboard.

circle-info

Credits to Earn Coin Poolarrow-up-right for documenting the procedure.

Also credit to sanskysarrow-up-right for documenting original procedure for adapools


Step 1 - Get API Key from Cexplorer

Go to https://cexplorer.io/apiarrow-up-right and select a plan


Step 2 - Copy API Key

Once you have selected a plan we can now copy our API Key

circle-info

📝 Copy this to a save place as we will need it later.

Copy Pool ID

If you don't know your pool id off the top of your head copy it from Cexploer.ioarrow-up-right while you are on their site.

circle-info

📝 Copy this to a save place as we will need it later.


Step 3 - Create poolStat Directory

Create poolStat directory by running the following commands:


Step 4 -Create script getstat.sh

Now we will create a script in the poolStat directory to pull pool stat json file and trim non-numeric strings.

Prometheus can work only with numeric data, so we must trim non-numeric strings which is returned from the JSON file provided by Cexplorer.

circle-exclamation

Step 5 - Add Permissions and Run the getstat Script

Add permissions and run getstat script by running these commands:


Step 6 - Check Output File

Check output file to make sure it contains only numeric values by running:

Your results should look similar to this example:


Step 7 - Configure Prometheus to Grab Data from poolStat.prom File

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

First let's backup the prometheus-node-exporter.service file by running the following:

Then let's edit file by running the following command:

Now we need to change ExecStart line to:

circle-exclamation

Step 8 - Change Default User for prometheus-node-exporter.service

hange the default user to your Linux user name in prometheus-node-exporter.service. Replace below.

circle-info

Or Alternatively: The default user of prometheus-node-exporter is “prometheus”. So, you could give the user “prometheus” read and write rights for poolStat.prom


Step 9 - Reload Daemon and Restart Services

Reload daemon and restart services by running:

Verify that the services are running properly:


Step 10 - Setup Cron Job to Update Data

The data will constantly change so we need to setup a cron job to grab the new data every so often. In this example we will grab new data every 6 hours.

First run:

Add the following to your cronjobs.

circle-exclamation

Step 11 - Display Data in Grafana

Now for your data source select Prometheus:

Select Prometheus for Data source

Now you should see all the "cexplorer" Metrics

Some of the data you might want to display:

  1. Active stake in ADA = cexplorer_active_stake_ada

  2. Live stake in ADA = cexplorer_live_stake_ada

  3. Number of Delegators = cexplorer_delegators

  4. Pool Pledge in ADA = cexplorer_pledge_ada

  5. Pool Saturation = cexplorer_saturation

  6. Blocks in Current Epoch = cexplorer_blocks_epoch

  7. Lifetime Blocks = cexplorer_blocks_total

  8. Lifetime ROA = cexplorer_lifetime_roa

  9. Lifetime Luck Percentage = cexplorer_lifetime_luck

  10. Recent ROA = cexplorer_recent_roa

  11. Recent Luck Percentage = cexplorer_recent_luck

  12. Last Block Time = cexplorer_last_block_time_ms

  13. Last Block Protocol = cexplorer_last_block_proto

  14. Last Block Slot Number = cexplorer_last_block_slot_number

  15. Last Block Epoch Number = cexplorer_last_block_epoch_number


Congratulations you did it!


Contributors

Thanks to the following pools for helping to put together these guides. Please consider delegating to their pools to support them. Are you a pool? Consider buying them a coffee

Earn Coin Pool - Ticker: ECParrow-up-right

xSPO Alliance Logo xSPO Alliancearrow-up-right

Last updated