Prometheus Jobs

Configure the Prometheus jobs to which targets will be assigned

Prometheus Jobs

Configure prometheus.yml

triangle-exclamation

Back up your current prometheus.yml file to your home directory, if you have one.

cp -v --backup=numbered /etc/prometheus/prometheus.yml ~/
Results of cp command

Copy the prometheus.yml rules configuration file from the Stake Local Dashboard repository to /etc/prometheus/.

Check Configuration

Check the configuration with promtool.

circle-info

You will get many warnings about files that do not exist. These are the target files that have not yet been configured. This is not a problem.

Look for "SUCCESS" messages similar to the following for both the configuration file and the rules file.

A successful promtool check command

If you see the output above, then you have successfully configured the Prometheus jobs.

Last updated