Skip to content

Commit

Permalink
Start on Prysm changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Aug 3, 2023
1 parent 3026f4e commit 7df35ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
1 change: 0 additions & 1 deletion grafana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ RUN chown -R grafana:root /etc/grafana/
COPY --chown=grafana:root ./dashboard.yml /etc/grafana/provisioning/dashboards/
COPY --chown=grafana:root ./datasource.yml /etc/grafana/provisioning/datasources/
COPY --chown=grafana:root ./provision-dashboards.sh /usr/local/bin/
COPY --chown=grafana:root ./nethermind_dashboard.json /tmp/
# Belt and suspenders
RUN chmod -R 755 /usr/local/bin/*

Expand Down
21 changes: 7 additions & 14 deletions grafana/provision-dashboards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,15 @@ fi

case "$CLIENT" in
*prysm* )
# prysm_metanull
__url='https://raw.githubusercontent.com/metanull-operator/eth2-grafana/master/eth2-grafana-dashboard-single-source-beacon_node.json'
__file='/etc/grafana/provisioning/dashboards/prysm_metanull.json'
wget -t 3 -T 10 -qcO - "${__url}" | jq '.title = "prysm_metanull"' >"${__file}"
# prysm_less_10
__url='https://raw.githubusercontent.com/GuillaumeMiralles/prysm-grafana-dashboard/master/less_10_validators.json'
__file='/etc/grafana/provisioning/dashboards/prysm_less_10.json'
wget -t 3 -T 10 -qcO - "${__url}" | jq '.title = "prysm_less_10"' >"${__file}"
# prysm_small
__url='https://docs.prylabs.network/assets/grafana-dashboards/small_amount_validators.json'
__file='/etc/grafana/provisioning/dashboards/prysm_small.json'
wget -t 3 -T 10 -qcO - "${__url}" >"${__file}"
# prysm_more_10
__url='https://raw.githubusercontent.com/GuillaumeMiralles/prysm-grafana-dashboard/master/more_10_validators.json'
__file='/etc/grafana/provisioning/dashboards/prysm_more_10.json'
wget -t 3 -T 10 -qcO - "${__url}" | jq '.title = "prysm_more_10"' >"${__file}"
# prysm_ynager
__url='https://raw.githubusercontent.com/ynager/grafana-eth-staking/main/dashboard.json'
__file='/etc/grafana/provisioning/dashboards/prysm_ynager.json'
wget -t 3 -T 10 -qcO - "${__url}" | jq '.title = "prysm_ynager"' >"${__file}"
__url='https://docs.prylabs.network/assets/grafana-dashboards/big_amount_validators.json'
__file='/etc/grafana/provisioning/dashboards/prysm_big.json'
wget -t 3 -T 10 -qcO - "${__url}" >"${__file}"
;;&
*lighthouse* )
# lighthouse_summary
Expand Down

0 comments on commit 7df35ad

Please sign in to comment.