Configure Prometheus Rules

Configure how Prometheus preprocesses data for efficiency

Configuring Prometheus Rules

Prometheus rules improve query response times by precomputing expensive query expressions.

Install Rules from Repository

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

cd ~/git/stakelocal-dashboard/config/prometheus/rules.d
sudo cp stakelocal_rules.yml /etc/prometheus/rules.d

Last updated