Optional: Prometheus Target

Monitor some basic details about Prometheus

Prometheus Target

The Stake Local dashboard provides only basic, high-level information about Prometheus. It may include memory use, version information, and latest GitHub release. Configuring this target is optional.

Edit the Prometheus configuration file in the /etc/prometheus/files_sd/stakelocal/other directory.

sudo nano /etc/prometheus/files_sd/stakelocal/other/prometheus.yml

It should look like the following.

    - targets: ['127.0.0.1:9090']
      labels:
        host: 'Default Host'
        service: 'Prometheus'
        client: 'Prometheus'

If this instance of Prometheus is accessible at a different IP address or port, update those in the targets line.

Update the host or service labels, as needed. See About Stake Local Labels for label definitions.

Save the file and exit the editor.

An example prometheus.yml file could look like the following.

    - targets: ['10.0.2.54:9090']
      labels:
        host: 'gringotts'
        service: 'Prometheus'
        client: 'Prometheus'

Last updated