Use regex to recognize metrics from both old and new laconicd
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 46s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m45s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m49s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m5s
Smoke Test / Run basic test suite (pull_request) Successful in 8m26s

This commit is contained in:
Prathamesh Musale 2024-04-10 18:08:05 +05:30
parent c696c2608e
commit bf9340343c
2 changed files with 17 additions and 17 deletions

View File

@ -27,7 +27,7 @@
"type": "prometheus", "type": "prometheus",
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"description": "The tendermint consensus latest block height", "description": "The consensus latest block height",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -77,7 +77,7 @@
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "tendermint_consensus_latest_block_height", "expr": "{__name__=~\"^(tendermint|cometbft)_consensus_latest_block_height$\"}",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
@ -644,14 +644,14 @@
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "tendermint_mempool_size", "expr": "{__name__=~\"^(tendermint|cometbft)_mempool_size\"}",
"instant": false, "instant": false,
"legendFormat": "{{__name__}}", "legendFormat": "mempool_size",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"title": "tendermint_mempool_size", "title": "mempool_size",
"type": "timeseries" "type": "timeseries"
}, },
{ {
@ -829,7 +829,7 @@
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "{__name__ =~ \"^_vulcanize_bond_v1beta1.*_count$\"}", "expr": "{__name__ =~ \"^_(vulcanize|cerc)_bond_(v1beta1|v1).*_count$\"}",
"instant": false, "instant": false,
"legendFormat": "{{__name__}}", "legendFormat": "{{__name__}}",
"range": true, "range": true,
@ -841,8 +841,8 @@
{ {
"id": "renameByRegex", "id": "renameByRegex",
"options": { "options": {
"regex": "_vulcanize_bond_v1beta1_Query_(.*?)_count", "regex": "_(vulcanize|cerc)_bond_(v1beta1|v1)_Query_(.*?)_count",
"renamePattern": "$1" "renamePattern": "$3"
} }
} }
], ],
@ -930,7 +930,7 @@
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "{__name__ =~ \"^_vulcanize_auction_v1beta1.*_count$\"}", "expr": "{__name__ =~ \"^_(vulcanize|cerc)_auction_(v1beta1|v1).*_count$\"}",
"instant": false, "instant": false,
"legendFormat": "{{__name__}}", "legendFormat": "{{__name__}}",
"range": true, "range": true,
@ -942,8 +942,8 @@
{ {
"id": "renameByRegex", "id": "renameByRegex",
"options": { "options": {
"regex": "_vulcanize_auction_v1beta1_Query_(.*?)_count", "regex": "_(vulcanize|cerc)_auction_(v1beta1|v1)_Query_(.*?)_count",
"renamePattern": "$1" "renamePattern": "$3"
} }
} }
], ],
@ -1031,7 +1031,7 @@
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "{__name__ =~ \"^_vulcanize_registry_v1beta1.*_count$\"}", "expr": "{__name__ =~ \"^_(vulcanize|cerc)_registry_(v1beta1|v1).*_count$\"}",
"instant": false, "instant": false,
"legendFormat": "{{__name__}}", "legendFormat": "{{__name__}}",
"range": true, "range": true,
@ -1043,8 +1043,8 @@
{ {
"id": "renameByRegex", "id": "renameByRegex",
"options": { "options": {
"regex": "_vulcanize_registry_v1beta1_Query_(.*?)_count", "regex": "_(vulcanize|cerc)_registry_(v1beta1|v1)_Query_(.*?)_count",
"renamePattern": "$1" "renamePattern": "$3"
} }
} }
], ],
@ -1067,6 +1067,6 @@
"timezone": "", "timezone": "",
"title": "Laconicd", "title": "Laconicd",
"uid": "fc7ea92d-8846-474a-89ed-5256c514f8c6", "uid": "fc7ea92d-8846-474a-89ed-5256c514f8c6",
"version": 27, "version": 1,
"weekStart": "" "weekStart": ""
} }

View File

@ -4,7 +4,7 @@
* Comes with the following built-in exporters / dashboards: * Comes with the following built-in exporters / dashboards:
* Chain Head Exporter - for tracking chain heads given external ETH RPC endpoints * Chain Head Exporter - for tracking chain heads given external ETH RPC endpoints
* Watchers dashboard * Watchers dashboard
* Laconicd dashboard * laconicd dashboard
* [Prometheus Blackbox](https://grafana.com/grafana/dashboards/7587-prometheus-blackbox-exporter/) - for tracking HTTP endpoints * [Prometheus Blackbox](https://grafana.com/grafana/dashboards/7587-prometheus-blackbox-exporter/) - for tracking HTTP endpoints
* [NodeJS Application Dashboard](https://grafana.com/grafana/dashboards/11159-nodejs-application-dashboard/) - for default NodeJS metrics * [NodeJS Application Dashboard](https://grafana.com/grafana/dashboards/11159-nodejs-application-dashboard/) - for default NodeJS metrics
* [PostgreSQL Database](https://grafana.com/grafana/dashboards/9628-postgresql-database/) - for monitoring Postgres dbs * [PostgreSQL Database](https://grafana.com/grafana/dashboards/9628-postgresql-database/) - for monitoring Postgres dbs
@ -118,7 +118,7 @@ laconic-so --stack monitoring deploy create --spec-file monitoring-spec.yml --de
``` ```
* Add database credentials to be used in `auth_modules` in the postgres-exporter config file (`monitoring-deployment/config/monitoring/postgres-exporter.yml`) * Add database credentials to be used in `auth_modules` in the postgres-exporter config file (`monitoring-deployment/config/monitoring/postgres-exporter.yml`)
* Laconicd: update the `laconicd` job with a Laconicd node's REST endpoint host and port: * laconicd: update the `laconicd` job with a laconicd node's REST endpoint host and port:
```yml ```yml
... ...