Skip to content
bridge-kusama-polkadot-alerts.json 53.4 KiB
Newer Older
{
  "apiVersion": 1,
  "groups": [
    {
      "orgId": 1,
      "name": "Bridge Kusama <> Polkadot",
      "folder": "bridges",
      "interval": "1m",
      "rules": [
        {
          "uid": "adizmaavld2psc",
          "title": "Polkadot -> KusamaBridgeHub finality sync lags (00000001)",
          "condition": "D",
          "data": [
            {
              "refId": "A",
              "relativeTimeRange": {
                "from": 21600,
                "to": 0
              },
              "datasourceUid": "PC96415006F908B67",
              "model": {
                "datasource": {
                  "type": "prometheus",
                  "uid": "PC96415006F908B67"
                },
                "editorMode": "code",
                "expr": "max(increase(Polkadot_to_BridgeHubKusama_Sync_best_source_at_target_block_number{domain=\"parity-chains\"}[24h]))",
                "instant": false,
                "interval": "",
                "intervalMs": 30000,
                "legendFormat": "At Polkadot",
                "maxDataPoints": 43200,
                "range": true,
                "refId": "A"
              }
            },
            {
              "refId": "C",
              "relativeTimeRange": {
                "from": 21600,
                "to": 0
              },
              "datasourceUid": "__expr__",
              "model": {
                "conditions": [
                  {
                    "evaluator": {
                      "params": [],
                      "type": "gt"
                    },
                    "operator": {
                      "type": "and"
                    },
                    "query": {
                      "params": [
                        "C"
                      ]
                    },
                    "reducer": {
                      "params": [],
                      "type": "last"
                    },
                    "type": "query"
                  }
                ],
                "datasource": {
                  "type": "__expr__",
                  "uid": "__expr__"
                },
                "expression": "A",
                "intervalMs": 1000,
                "maxDataPoints": 43200,
                "reducer": "max",
                "refId": "C",
                "type": "reduce"
              }
            },
            {
              "refId": "D",
              "relativeTimeRange": {
                "from": 21600,
                "to": 0
              },
              "datasourceUid": "__expr__",
              "model": {
                "conditions": [
                  {
                    "evaluator": {
                      "params": [
                        5000
                      ],
                      "type": "lt"
                    },
                    "operator": {
                      "type": "and"
                    },
                    "query": {
                      "params": [
                        "D"
                      ]
                    },
                    "reducer": {
                      "params": [],
                      "type": "last"
                    },
                    "type": "query"
                  }
                ],
                "datasource": {
                  "type": "__expr__",
                  "uid": "__expr__"
                },
                "expression": "C",
                "intervalMs": 1000,
                "maxDataPoints": 43200,
                "refId": "D",
                "type": "threshold"
              }
            }
          ],
          "dasboardUid": "zqjpkXxnk",
          "panelId": 2,
          "noDataState": "OK",
          "execErrState": "OK",
          "for": "5m",
          "annotations": {
            "__dashboardUid__": "zqjpkXxnk",
            "__panelId__": "2",
            "summary": "Less than 5000 Polkadot headers (~1/2 era) have been synced to KusamaBridgeHub in last 25 hours. Relay is not running?"
          },
          "labels": {
            "matrix_room": "FqmgUhjOliBGoncGwm"
          },
          "isPaused": false
        },
        {
          "uid": "cdiznm0i2tslca",
          "title": "PolkadotBridgeHub -> KusamaBridgeHub delivery lags (00000001)",
          "condition": "B",
          "data": [
            {
              "refId": "A",
              "relativeTimeRange": {
                "from": 21600,
                "to": 0
              },
              "datasourceUid": "PC96415006F908B67",
              "model": {
                "datasource": {
                  "type": "prometheus",
                  "uid": "PC96415006F908B67"
                },
                "editorMode": "code",
                "expr": "((vector(0) and ((BridgeHubPolkadot_to_BridgeHubKusama_MessageLane_00000001_lane_state_nonces{domain=\"parity-chains\",type=\"source_latest_generated\"} > on () BridgeHubPolkadot_to_BridgeHubKusama_MessageLane_00000001_lane_state_nonces{domain=\"parity-chains\",type=\"target_latest_received\"}))) or vector(1)) + on () increase(BridgeHubPolkadot_to_BridgeHubKusama_MessageLane_00000001_lane_state_nonces{domain=\"parity-chains\",type=\"target_latest_received\"}[10m]) * on () ((vector(1) and ((BridgeHubPolkadot_to_BridgeHubKusama_MessageLane_00000001_lane_state_nonces{domain=\"parity-chains\",type=\"source_latest_generated\"} > on () BridgeHubPolkadot_to_BridgeHubKusama_MessageLane_00000001_lane_state_nonces{domain=\"parity-chains\",type=\"target_latest_received\"}))) or vector(0))",
                "instant": false,
                "interval": "",
                "intervalMs": 30000,
                "legendFormat": "Undelivered messages",
                "maxDataPoints": 43200,
                "range": true,
                "refId": "A"
              }
            },
            {
              "refId": "B",
              "relativeTimeRange": {
                "from": 600,
                "to": 0
              },
              "datasourceUid": "__expr__",
              "model": {
                "conditions": [
                  {
                    "evaluator": {
                      "params": [
                        1,
                        0
                      ],
                      "type": "lt"
                    },
                    "operator": {
                      "type": "and"
                    },
                    "query": {
                      "params": [
                        "A"
                      ]
                    },
                    "reducer": {
                      "params": [],
                      "type": "max"
                    },
                    "type": "query"
                  }
                ],
                "datasource": {
                  "name": "Expression",
                  "type": "__expr__",
                  "uid": "__expr__"
Loading full blame...