📖
Stake Local Dashboard
  • Stake Local Dashboard
    • Library Sections
  • Dashboard Installation
    • Installation Overview
    • Install Supporting Software
      • Install Prerequisites
      • Install Prometheus
      • Install Grafana
      • Install node_exporter
      • Install json_exporter
      • Install Ethereum Metrics Exporter
    • Configure Ethereum Clients
    • Configure Supporting Software
      • Configure json_exporter
      • Configure Prometheus Rules
      • Configure Ethereum Metrics Exporter
    • Prometheus Jobs & Targets
      • Prometheus Jobs
      • About Stake Local Labels
      • Base Targets Installation
      • Consensus Client Targets
      • Execution Client Targets
      • Validator Client Targets
      • node_exporter Target
      • json_exporter Target
      • Ethereum Metrics Exporter Targets
      • Third-Party Targets
      • Ethereum Address Targets
      • Validator Public Key Targets
      • Optional: Grafana Target
      • Optional: Prometheus Target
      • Clean Up Unused Targets
    • Optional: Alternative Dashboard Compatibility
      • Besu Dashboard Compatibility
      • Erigon Dashboard Compatibility
      • Geth Dashboard Compatibility
      • Lighthouse Dashboard Compatibility
      • Lodestar Dashboard Compatibility
      • Nethermind Dashboard Compatibility
      • Nimbus Dashboard Compatibility
      • Prysm Dashboard Compatibility
      • Teku Compatibility
    • Enable & Start/Restart Services
      • Checking Software Status
    • Install Dashboard
  • Additional Modifications
    • Additional Staking Groups
    • Change or Add Currency
Powered by GitBook
On this page
  • Change or Add Currency
  • Change Currency
  • Add New Currency
  1. Additional Modifications

Change or Add Currency

Change the currency used to calculate fiat values of Ether on the dashboard.

PreviousAdditional Staking Groups

Last updated 2 years ago

Change or Add Currency

The dashboard comes preconfigured to support 17 different currencies for fiat value conversions.

USD
EUR
JPY

GBP

AUD

CAD

CHF

CNY

HKD

NZD

ILS

KRW

MXN

RUB

SGD

TWD

INR

It is easy to change to one of the supported currencies through the Grafana UI using the instructions below. If you want to add an unsupported currency, instructions are included for that afterward.

Change Currency

Follow these steps to change the selected currency to another supported currency.

Click on the gear icon in the upper-right corner of the Grafana dashboard.

Click on the Variables link on the left-hand side of the screen.

Click on the currency variable name.

Change the variable value to one of the 17 supported currencies listed in the Description field.

Click the Apply button to save the change.

Click on the Save Dashboard button in the upper-right corner of the screen.

The Save Dashboard panel will open. Enter a note and then click on the Save button.

Add New Currency

Additional languages may be added manually by modifying two configuration files and then following the above instructions to change the currency variable.

/etc/json_exporter/json_exporter.yml

First, edit the json_exporter configuration file to add support for parsing the new currency values

sudo nano /etc/json_exporter/json_exporter.yml

Find the coingecko_eth_price section and look for the list of currencies under the values line. That section should look similar to the following.

  coingecko_eth_price:
    metrics:
    - name: eth
      type: object
      path: '{.ethereum}'
      help: Ether (ETH) price in fiat
      values:
        USD: '{.usd}'
        EUR: '{.eur}'
        JPY: '{.jpy}'
        GBP: '{.gbp}'
        AUD: '{.aud}'
        CAD: '{.cad}'
        CHF: '{.chf}'
        CNY: '{.cny}'
        HKD: '{.hkd}'
        NZD: '{.nzd}'
        ILS: '{.ils}'
        KRW: '{.krw}'
        MXN: '{.mxn}'
        RUB: '{.rub}'
        SGD: '{.sgd}'
        TWD: '{.twd}'
        INR: '{.inr}'

Add a new currency line following the model of the other currency lines, with the three-character currency code first in all caps and then in lowercase.

For example, if we want to add support for Swedish krona, we would add the following line to the values section of the coingecko_eth_price module. There should be eight spaces before the currency code.

         SEK: '{.sek}'

/etc/prometheus/files_sd/other/currencies.yml

Second, edit the currencies.yml configuration file to add support for the new currency to the CoinGeck query.

sudo nano /etc/prometheus/files_sd/stakelocal/other/coingecko.yml

In the targets line, add the three-character currency code to the comma-delimited list of currencies to be queried. All three-character currency codes must be contained within the single set of quotes.

For example, to continue adding support for Swedish Krona, we would add ,sek to the end of the targets line list of currencies. The final result may look like the following.

    - targets: ['usd,eur,jpy,gbp,aud,cad,chf,cny,hkd,nzd,ils,krw,mxn,rub,sgd,twd,inr,sek']

After modifying these two files, restart json_exporter only. The changes to the Prometheus configuration will be picked up automatically.

sudo systemctl restart json_exporter

Currencies must be supported by the .

After completing the setup, set your new currency code as the currency variable value using the .

Coingecko API
instructions at the top of this page
The currency variable in the variables list
Updating the currency value to GBP
Click the Apply button to apply the new currency value
Click the Save Dashboard button to open the save panel
Enter a note and click the Save button