Base Targets Installation
Install default Prometheus targets that we can edit later
Download and unpack the archive of default target configuration files. This will install configuration files for all supported clients. We can clean up the unused target files later.
cd ~/git/stakelocal-dashboard
sudo tar xzvf stakelocal_prometheus_targets.tgz -C /etc/prometheus/files_sd

tar
commandClean up the archive file now that we have unpacked it.
rm stakelocal_prometheus_targets.tgz
Most of the targets unpacked will have default IP addresses, ports, and label values suitable to get the dashboard up and running quickly without modification.
Specifically, the default target files assume the following.
All clients and supporting software are accessible at 127.0.0.1 from any other client.
All clients and supporting software are using the ports defined in this guide, nearly all of which are the client default ports.
And the default labels are assigned as follows.
Where used, the
network
label is set to "Mainnet".Where used, the
host
label is set to "Default Host".Where used, the
group
label is set to "Default Group".Where used, the
explorer
label is set to "beaconcha.in" or "etherscan.io".
If these assumptions and defaults are acceptable, you can jump ahead to Ethereum Address Targets and continue from there. Changes can always be made later, and Prometheus will automatically reload these configuration files without running any restart/reload commands.
If your clients or supporting software are not accessible at 127.0.0.1
or are running on non-standard ports, you must continue to the next sections.
The following sections will guide you through a review of the Prometheus targets we just unpacked. Making changes as necessary to IP addresses, ports, or labels.
Last updated