# Configure Prometheus Rules

## 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/`.

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