Add alerts for testnet services

This commit is contained in:
nabarun committed 2025-04-04 18:06:53 +05:30
1 parent 27412519b4
commit fb0138e975
2 files changed
+82 -2

No files matched your search

@@ -4,7 +4,7 @@ Instructions to setup and run monitoring stack for testnet services
## Create a deployment
After completing [setup](./README.md#setup), create a spec file for the deployment, which will map the stack's ports and volumes to the host:
Create a spec file for the deployment, which will map the stack's ports and volumes to the host:
```bash
laconic-so --stack monitoring deploy init --output monitoring-testnet-spec.yml
@@ -37,7 +37,7 @@ laconic-so --stack monitoring deploy create --spec-file monitoring-testnet-spec.
### Prometheus scrape config
Add the following scrape configs to prometheus config file (`monitoring-testnet-deployment/config/monitoring/prometheus/prometheus.yml`) in the deployment folder:
- Setup the following scrape configs in prometheus config file (`monitoring-testnet-deployment/config/monitoring/prometheus/prometheus.yml`) in the deployment folder:
```yml
...
@@ -62,6 +62,22 @@ Add the following scrape configs to prometheus config file (`monitoring-testnet-
# Example: 'host.docker.internal:3317'
```
- Remove docker compose services which are not required in `monitoring-testnet-deployment/compose/docker-compose-prom-server.yml`
- `ethereum-chain-head-exporter`
- `filecoin-chain-head-exporter`
- `graph-node-upstream-head-exporter`
- `postgres-exporter`
### Grafana dashboards
Remove some of the existing dashboards which are not required in monitoring testnet
```
cd monitoring-testnet-deployment/config/monitoring/grafana/dashboards
rm postgres-dashboard.json subgraphs-dashboard.json watcher-dashboard.json
cd -
```
<!-- TODO: Check node-exporter-full.json, nodejs-app-dashboard.json -->
### Grafana alerts config
Place the pre-configured alerts rules in Grafana provisioning directory: