mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 01:43:29 +01:00
Update prometheus instructions
This commit is contained in:
parent
172d76bbad
commit
d128aef758
@ -1,15 +1,22 @@
|
||||
## Monitoring
|
||||
|
||||
Indexing and serving metrics are exported via [Prometheus](https://github.com/pingcap/rust-prometheus):
|
||||
Indexing and serving metrics are exported via [Prometheus](https://github.com/tikv/rust-prometheus):
|
||||
|
||||
```bash
|
||||
$ sudo apt install prometheus
|
||||
$ echo "
|
||||
scrape_configs:
|
||||
```
|
||||
|
||||
Add `electrs` job to `scrape_configs` section in `/etc/prometheus/prometheus.yml`:
|
||||
|
||||
```
|
||||
- job_name: electrs
|
||||
static_configs:
|
||||
- targets: ['localhost:4224']
|
||||
" | sudo tee -a /etc/prometheus/prometheus.yml
|
||||
```
|
||||
|
||||
Restart and check the collected metrics:
|
||||
|
||||
```
|
||||
$ sudo systemctl restart prometheus
|
||||
$ firefox 'http://localhost:9090/graph?g0.range_input=1h&g0.expr=index_height&g0.tab=0'
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user