Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mnrgreg/rocketpool-stake-value-reporting

RocketPool Node Operator - Total Dollar value dashboard
https://github.com/mnrgreg/rocketpool-stake-value-reporting

dashboard grafana rocketpool

Last synced: 7 days ago
JSON representation

RocketPool Node Operator - Total Dollar value dashboard

Awesome Lists containing this project

README

        

## RocketPool Node Operator overrides to graph total stake dollar value
Graph the total dollar value of both rewards and stake over time.

---
Dashboard:

![Grafana Dashboard](dashboard.png)

1. Import `grafana-dashboard.json` into Grafana.

2. Apply changes:

```shell
cat < ~/.rocketpool/override/json_exporter.yml
metrics:
- name: cryptocurrency
type: object
help: General statistics of the top cryptocurrencies
path: '{.coin}'
labels:
symbol: '{.symbol}'
values:
price: '{.price}'
EOF
```

```shell
cat < ~/.rocketpool/override/exporter.yml
# Enter your own customizations for the node exporter container here. These changes will persist after upgrades, so you only need to do them once.
#
# See https://docs.docker.com/compose/extends/#adding-and-overriding-configuration
# for more information on overriding specific parameters of docker-compose files.

version: "3.7"
services:
node-exporter:
x-rp-comment: Add your customizations below this line
json_exporter:
image: quay.io/prometheuscommunity/json-exporter:v0.4.0
container_name: json_exporter
restart: unless-stopped
volumes:
- ~/.rocketpool/override/json_exporter.yml:/config.yml:ro
networks:
- net
EOF
```

```shell
cat <> ~/.rocketpool/prometheus.tmpl

- job_name: json_exporter
scrape_interval: 1m
scrape_timeout: 15s
honor_labels: true
metrics_path: /probe
static_configs:
- targets:
- https://api.coinstats.app/public/v1/coins/ethereum?currency=USD
- https://api.coinstats.app/public/v1/coins/rocket-pool?currency=USD
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__address__]
regex: ^http.+currency=([A-Z]{3})
action: replace
target_label: currency
replacement: ${1}
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: json_exporter:7979
EOF
```

3. Run `rocketpool service start`