Skip to content

Commit

Permalink
chore: update cosmos-node-exporter and alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Jul 1, 2024
1 parent acf6d12 commit a483902
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"type": "prometheus",
"uid": "prometheus"
},
"enable": true,
"enable": false,
"expr": "(1 - up{job=~\"tendermint.*\"})",
"hide": true,
"hide": false,
"iconColor": "super-light-red",
"name": "tendermint down",
"textFormat": "",
Expand All @@ -34,7 +34,7 @@
},
"enable": true,
"expr": "1 - up{job=~\"cosmos-node-exporter.*\"}",
"hide": true,
"hide": false,
"iconColor": "dark-red",
"name": "cosmos-node-exporter down",
"textFormat": "",
Expand Down Expand Up @@ -279,7 +279,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "cosmos_node_exporter_time_since_latest_block < 60 * 60 * 24 * 365",
"expr": "time() - cosmos_node_exporter_latest_block_time",
"interval": "",
"legendFormat": "{{ host }}",
"range": true,
Expand Down Expand Up @@ -934,7 +934,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1117,7 +1118,7 @@
}
]
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -1328,7 +1329,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1365,7 +1367,7 @@
}
]
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -1449,7 +1451,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1511,7 +1514,8 @@
"mode": "absolute",
"steps": [
{
"color": "red"
"color": "red",
"value": null
},
{
"color": "green",
Expand Down Expand Up @@ -1591,7 +1595,7 @@
"showHeader": true,
"sortBy": []
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -1750,7 +1754,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1812,7 +1817,8 @@
"mode": "absolute",
"steps": [
{
"color": "red"
"color": "red",
"value": null
},
{
"color": "green",
Expand Down Expand Up @@ -1981,7 +1987,7 @@
}
]
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -2155,7 +2161,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -2209,7 +2216,8 @@
"mode": "absolute",
"steps": [
{
"color": "red"
"color": "red",
"value": null
},
{
"color": "green",
Expand Down Expand Up @@ -2254,7 +2262,7 @@
}
]
},
"pluginVersion": "10.4.1",
"pluginVersion": "11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -2362,6 +2370,6 @@
"timezone": "",
"title": "Cosmos Node Stats",
"uid": "cosmos-node-stats",
"version": 17,
"version": 19,
"weekStart": ""
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ groups:
description: "Tendermint testnet node has 0 voting power"

- alert: CosmosNodeTimeSinceLatestBlock
expr: cosmos_node_exporter_time_since_latest_block > 600
expr: time() - cosmos_node_exporter_latest_block_time > 600
for: 1m
labels:
severity: critical
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ groups:
description: "The balance of oracle wallet on {{ $labels.chain }} is below threshold: {{ $value }}"

- alert: CosmosWalletExportePigeonBalanceTooLow
expr: cosmos_wallets_exporter_balance{group="pigeon"} < 20
expr: cosmos_wallets_exporter_balance{group="pigeon"} < 500
for: 10m
labels:
severity: warning
Expand Down

0 comments on commit a483902

Please # to comment.