Update watcher dashboards for upstream and external chain heads

This commit is contained in:
Prathamesh Musale 2023-12-18 15:12:20 +05:30
parent 743dc6ea83
commit d4e42d2aec
14 changed files with 444 additions and 24 deletions

View File

@ -28,5 +28,20 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway"
chain-head-exporter:
image: cerc/watcher-ts:local
restart: always
working_dir: /app/packages/cli
environment:
ETH_RPC_ENDPOINT: ${CERC_ETH_RPC_ENDPOINT}
FIL_RPC_ENDPOINT: ${CERC_FIL_RPC_ENDPOINT}
ETH_RPC_API_KEY: ${CERC_INFURA_KEY}
PORT: ${CERC_METRICS_PORT}
command: ["sh", "-c", "yarn export-metrics:chain-heads"]
ports:
- '5000'
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
prometheus_data:

View File

@ -95,7 +95,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head block number of upstream endpoint",
"description": "Chain head block number of the upstream endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -138,6 +138,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_upstream_block_number{job=\"REPLACE_WITH_WATCHER_JOB\", instance=\"REPLACE_WITH_WATCHER_NAME\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Upstream chain head",
"type": "stat"
},
@ -146,7 +164,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head from a public endpoint (etherscan)",
"description": "Chain head from an external public endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -189,6 +207,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_block_number{job=\"chain_heads\", chain=\"REPLACE_WITH_WATCHER_CHAIN\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "External chain head",
"type": "stat"
},

View File

@ -95,7 +95,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head block number of upstream endpoint",
"description": "Chain head block number of the upstream endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -138,6 +138,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_upstream_block_number{job=\"azimuth\", instance=\"azimuth\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Upstream chain head",
"type": "stat"
},
@ -146,7 +164,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head from a public endpoint (etherscan)",
"description": "Chain head from an external public endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -189,6 +207,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_block_number{job=\"chain_heads\", chain=\"ethereum\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "External chain head",
"type": "stat"
},

View File

@ -95,7 +95,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head block number of upstream endpoint",
"description": "Chain head block number of the upstream endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -138,6 +138,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_upstream_block_number{job=\"azimuth\", instance=\"censures\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Upstream chain head",
"type": "stat"
},
@ -146,7 +164,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head from a public endpoint (etherscan)",
"description": "Chain head from an external public endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -189,6 +207,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_block_number{job=\"chain_heads\", chain=\"ethereum\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "External chain head",
"type": "stat"
},

View File

@ -95,7 +95,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head block number of upstream endpoint",
"description": "Chain head block number of the upstream endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -138,6 +138,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_upstream_block_number{job=\"azimuth\", instance=\"claims\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Upstream chain head",
"type": "stat"
},
@ -146,7 +164,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head from a public endpoint (etherscan)",
"description": "Chain head from an external public endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -189,6 +207,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_block_number{job=\"chain_heads\", chain=\"ethereum\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "External chain head",
"type": "stat"
},

View File

@ -95,7 +95,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head block number of upstream endpoint",
"description": "Chain head block number of the upstream endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -138,6 +138,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_upstream_block_number{job=\"azimuth\", instance=\"conditional_star_release\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Upstream chain head",
"type": "stat"
},
@ -146,7 +164,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head from a public endpoint (etherscan)",
"description": "Chain head from an external public endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -189,6 +207,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_block_number{job=\"chain_heads\", chain=\"ethereum\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "External chain head",
"type": "stat"
},

View File

@ -95,7 +95,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head block number of upstream endpoint",
"description": "Chain head block number of the upstream endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -138,6 +138,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_upstream_block_number{job=\"azimuth\", instance=\"delegated_sending_watcher\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Upstream chain head",
"type": "stat"
},
@ -146,7 +164,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head from a public endpoint (etherscan)",
"description": "Chain head from an external public endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -189,6 +207,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_block_number{job=\"chain_heads\", chain=\"ethereum\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "External chain head",
"type": "stat"
},

View File

@ -95,7 +95,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head block number of upstream endpoint",
"description": "Chain head block number of the upstream endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -138,6 +138,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_upstream_block_number{job=\"azimuth\", instance=\"ecliptic\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Upstream chain head",
"type": "stat"
},
@ -146,7 +164,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head from a public endpoint (etherscan)",
"description": "Chain head from an external public endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -189,6 +207,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_block_number{job=\"chain_heads\", chain=\"ethereum\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "External chain head",
"type": "stat"
},

View File

@ -95,7 +95,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head block number of upstream endpoint",
"description": "Chain head block number of the upstream endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -138,6 +138,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_upstream_block_number{job=\"azimuth\", instance=\"linear_star_release\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Upstream chain head",
"type": "stat"
},
@ -146,7 +164,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head from a public endpoint (etherscan)",
"description": "Chain head from an external public endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -189,6 +207,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_block_number{job=\"chain_heads\", chain=\"ethereum\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "External chain head",
"type": "stat"
},

View File

@ -95,7 +95,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head block number of upstream endpoint",
"description": "Chain head block number of the upstream endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -138,6 +138,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_upstream_block_number{job=\"azimuth\", instance=\"polls\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Upstream chain head",
"type": "stat"
},
@ -146,7 +164,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head from a public endpoint (etherscan)",
"description": "Chain head from an external public endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -189,6 +207,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_block_number{job=\"chain_heads\", chain=\"ethereum\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "External chain head",
"type": "stat"
},

View File

@ -95,7 +95,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head block number of upstream endpoint",
"description": "Chain head block number of the upstream endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -138,6 +138,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_upstream_block_number{job=\"sushi\", instance=\"merkl_sushiswap\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Upstream chain head",
"type": "stat"
},
@ -146,7 +164,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head from a public endpoint (filfox)",
"description": "Chain head from an external public endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -189,6 +207,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_block_number{job=\"chain_heads\", chain=\"filecoin\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "External chain head",
"type": "stat"
},

View File

@ -95,7 +95,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head block number of upstream endpoint",
"description": "Chain head block number of the upstream endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -138,6 +138,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_upstream_block_number{job=\"sushi\", instance=\"sushiswap\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Upstream chain head",
"type": "stat"
},
@ -146,7 +164,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Chain head from a public endpoint (filfox)",
"description": "Chain head from an external public endpoint",
"fieldConfig": {
"defaults": {
"color": {
@ -189,6 +207,24 @@
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "latest_block_number{job=\"chain_heads\", chain=\"filecoin\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "External chain head",
"type": "stat"
},
@ -1174,6 +1210,6 @@
"timepicker": {},
"timezone": "",
"title": "sushiswap watcher",
"version": 3,
"version": 1,
"weekStart": ""
}

View File

@ -1,5 +1,5 @@
global:
scrape_interval: 15s
scrape_interval: 10s
evaluation_interval: 15s
rule_files:
@ -31,3 +31,10 @@ scrape_configs:
regex: .*
target_label: __address__
replacement: blackbox:9115
- job_name: chain_heads
metrics_path: /metrics
scheme: http
static_configs:
- targets: ['chain-head-exporter:5000']

View File

@ -1,7 +1,9 @@
version: "0.1"
name: monitoring
repos:
- github.com/cerc-io/watcher-ts # @v0.2.79
containers:
- cerc/watcher-ts
pods:
- prom-server
- grafana