Change or Add Currency
Change the currency used to calculate fiat values of Ether on the dashboard.
Last updated
Change the currency used to calculate fiat values of Ether on the dashboard.
Last updated
The dashboard comes preconfigured to support 17 different currencies for fiat value conversions.
USD | EUR | JPY |
---|---|---|
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.
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.
Additional languages may be added manually by modifying two configuration files and then following the above instructions to change the currency variable.
Currencies must be supported by the Coingecko API.
First, edit the json_exporter
configuration file to add support for parsing the new currency values
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.
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.
Second, edit the currencies.yml
configuration file to add support for the new currency to the CoinGeck query.
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.
After modifying these two files, restart json_exporter only. The changes to the Prometheus configuration will be picked up automatically.
After completing the setup, set your new currency code as the currency
variable value using the instructions at the top of this page.
GBP
AUD
CAD
CHF
CNY
HKD
NZD
ILS
KRW
MXN
RUB
SGD
TWD
INR