Clean Up Unused Targets Remove Prometheus target configurations for clients not in use
We started by unpacking an archive of Prometheu target files, and have now made modifications to files for clients we intend to use. At this point we may have many more target files installed for clients we do not intend to use.
Remove the target configuration files for clients you do not intend to use. Do not delete the target configuration files we have already customized and intend to use.
Warning: Do not delete target configuration files for clients you are using.
Here are commands to delete unwanted execution client target configuration files.
Besu Erigon Geth Nethermind
Only run these commands if you are NOT monitoring Besu with the Stake Local Dashboard.
Copy sudo rm -i /etc/prometheus/files_sd/stakelocal/execution_metrics/besu.yml
sudo rm -i /etc/prometheus/files_sd/stakelocal/execution_apis/besu.yml
Only run these commands if you are NOT monitoring Erigon with the Stake Local Dashboard.
Copy sudo rm -i /etc/prometheus/files_sd/stakelocal/execution_metrics/erigon.yml
sudo rm -i /etc/prometheus/files_sd/stakelocal/execution_apis/erigon.yml
Only run these commands if you are NOT monitoring Geth with the Stake Local Dashboard.
Copy sudo rm -i /etc/prometheus/files_sd/stakelocal/execution_metrics/geth.yml
sudo rm -i /etc/prometheus/files_sd/stakelocal/execution_apis/geth.yml
Only run these commands if you are NOT monitoring Nethermind with the Stake Local Dashboard.
Copy sudo rm -i /etc/prometheus/files_sd/stakelocal/execution_metrics/nethermind.yml
sudo rm -i /etc/prometheus/files_sd/stakelocal/execution_apis/nethermind.yml
Here are commands to delete unwanted consensus client target configuration files.
Lighthouse Lodestar Nimbus Prysm Teku
Only run these commands if you are NOT monitoring Lighthouse with the Stake Local Dashboard.
Copy sudo rm -i /etc/prometheus/files_sd/stakelocal/consensus_metrics/lighthouse.yml
sudo rm -i /etc/prometheus/files_sd/stakelocal/consensus_apis/lighthouse.yml
Only run these commands if you are NOT monitoring Lodestar with the Stake Local Dashboard.
Copy sudo rm -i /etc/prometheus/files_sd/stakelocal/consensus_metrics/lodestar.yml
sudo rm -i /etc/prometheus/files_sd/stakelocal/consensus_apis/lodestar.yml
Only run these commands if you are NOT monitoring Teku with the Stake Local Dashboard.
Copy sudo rm -i /etc/prometheus/files_sd/stakelocal/consensus_metrics/nimbus.yml
sudo rm -i /etc/prometheus/files_sd/stakelocal/consensus_apis/nimbus.yml
Only run these commands if you are NOT monitoring Teku with the Stake Local Dashboard.
Copy sudo rm -i /etc/prometheus/files_sd/stakelocal/consensus_metrics/prysm.yml
sudo rm -i /etc/prometheus/files_sd/stakelocal/consensus_apis/prysm.yml
Only run these commands if you are NOT monitoring Teku with the Stake Local Dashboard.
Copy sudo rm -i /etc/prometheus/files_sd/stakelocal/consensus_metrics/teku.yml
sudo rm -i /etc/prometheus/files_sd/stakelocal/consensus_apis/teku.yml