Skip to content

Instantly share code, notes, and snippets.

@pi0neerpat
Created August 11, 2020 19:46
Show Gist options
  • Save pi0neerpat/5c469d7ffe850b34c7b245be48f51706 to your computer and use it in GitHub Desktop.
Save pi0neerpat/5c469d7ffe850b34c7b245be48f51706 to your computer and use it in GitHub Desktop.
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 1,
"iteration": 1589415329541,
"links": [],
"panels": [
{
"cacheTimeout": null,
"columns": [],
"datasource": "prometheus",
"fontSize": "100%",
"gridPos": {
"h": 11,
"w": 12,
"x": 0,
"y": 0
},
"id": 18,
"links": [],
"pageSize": null,
"showHeader": true,
"sort": {
"col": 2,
"desc": true
},
"styles": [
{
"alias": "Time",
"align": "auto",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "hidden"
},
{
"alias": "Time spent",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Value",
"thresholds": [],
"type": "number",
"unit": "s"
},
{
"alias": "Section",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Metric",
"thresholds": [],
"type": "string",
"unit": "short"
}
],
"targets": [
{
"expr": "sum(increase([[subgraph_hash]]_sync_total_secs[1y]))",
"instant": true,
"legendFormat": "total",
"refId": "L"
},
{
"expr": "sum(increase([[subgraph_hash]]_unknown_secs[1y]))",
"instant": true,
"legendFormat": "unknown",
"refId": "B"
},
{
"expr": "sum(increase([[subgraph_hash]]_scan_blocks_secs[1y]))",
"format": "time_series",
"instant": true,
"legendFormat": "scan_blocks",
"refId": "A"
},
{
"expr": "sum(increase([[subgraph_hash]]_module_init_secs[1y]))",
"instant": true,
"legendFormat": "module_init",
"refId": "C"
},
{
"expr": "sum(increase([[subgraph_hash]]_run_handler_secs[1y]))",
"instant": true,
"legendFormat": "run_handler",
"refId": "D"
},
{
"expr": "sum(increase([[subgraph_hash]]_transact_block_secs[1y]))",
"instant": true,
"legendFormat": "transact_block",
"refId": "G"
},
{
"expr": "sum(increase([[subgraph_hash]]_host_export_other_secs[1y]))",
"instant": true,
"legendFormat": "host_export_other",
"refId": "F"
},
{
"expr": "sum(increase([[subgraph_hash]]_host_export_store_get_secs[1y]))",
"instant": true,
"legendFormat": "host_export_store_get",
"refId": "E"
},
{
"expr": "sum(increase([[subgraph_hash]]_host_export_store_set_secs[1y]))",
"instant": true,
"legendFormat": "host_export_store_set",
"refId": "H"
},
{
"expr": "sum(increase([[subgraph_hash]]_host_export_ethereum_call_secs[1y]))",
"instant": true,
"legendFormat": "host_export_ethereum_call",
"refId": "I"
},
{
"expr": "sum(increase([[subgraph_hash]]_host_export_ipfs_cat_secs[1y]))",
"instant": true,
"legendFormat": "host_export_ipfs_cat",
"refId": "J"
},
{
"expr": "sum(increase([[subgraph_hash]]_host_export_ipfs_map_secs[1y]))",
"instant": true,
"legendFormat": "host_export_ipfs_map",
"refId": "K"
},
{
"expr": "sum(increase([[subgraph_hash]]_store_get_asc_new_secs[1y]))",
"instant": true,
"legendFormat": "store_get_asc_new",
"refId": "M"
},
{
"expr": "sum(increase([[subgraph_hash]]_apply_entity_modifications_secs[1y]))",
"instant": true,
"legendFormat": "apply_entity_modifications",
"refId": "N"
},
{
"expr": "sum(increase([[subgraph_hash]]_check_interface_entity_uniqueness_secs[1y]))",
"instant": true,
"legendFormat": "check_interface_entity_uniqueness",
"refId": "O"
},
{
"expr": "sum(increase([[subgraph_hash]]_apply_entity_modifications_update_secs[1y]))",
"instant": true,
"legendFormat": "apply_entity_modifications_update",
"refId": "P"
},
{
"expr": "sum(increase([[subgraph_hash]]_apply_entity_modifications_insert_secs[1y]))",
"instant": true,
"legendFormat": "apply_entity_modifications_insert",
"refId": "Q"
},
{
"expr": "sum(increase([[subgraph_hash]]_as_modifications_secs[1y]))",
"instant": true,
"legendFormat": "as_modifications",
"refId": "R"
},
{
"expr": "sum(increase([[subgraph_hash]]_entity_cache_evict_secs[1y]))",
"instant": true,
"legendFormat": "entity_cache_evict",
"refId": "S"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Time spent while indexing",
"transform": "timeseries_to_rows",
"type": "table"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 7,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 0
},
"hiddenSeries": false,
"id": 2,
"legend": {
"avg": true,
"current": false,
"max": true,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/eth_getLogs/",
"color": "#5794F2"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(subgraph_eth_rpc_request_duration_[[subgraph_hash]][1m])) by (method)",
"legendFormat": "{{method}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Eth Rpc Request Duration",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": "Requests per minute",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 4,
"w": 12,
"x": 12,
"y": 9
},
"hiddenSeries": false,
"id": 12,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/value/",
"color": "#FADE2A"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "increase(subgraph_reverted_blocks_[[subgraph_hash]][1m])",
"legendFormat": "value",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Reverted Blocks",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorPostfix": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "prometheus",
"format": "s",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 12,
"x": 0,
"y": 11
},
"id": 20,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"pluginVersion": "6.4.3",
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false,
"ymax": null,
"ymin": null
},
"tableColumn": "Value",
"targets": [
{
"expr": "[[subgraph_hash]]_get_entity_conn_secs",
"format": "table",
"instant": true,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Total time waiting for DB connection",
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"content": "<br/> \n<center> \n <h1>Block Processing / Handler Execution</h1> \n</center>",
"datasource": null,
"gridPos": {
"h": 2,
"w": 24,
"x": 0,
"y": 13
},
"id": 33,
"mode": "html",
"timeFrom": null,
"timeShift": null,
"title": "",
"transparent": true,
"type": "text"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 7,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 15
},
"hiddenSeries": false,
"id": 34,
"legend": {
"alignAsTable": false,
"avg": true,
"current": false,
"max": true,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/value/",
"color": "#FFB357"
},
{}
],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(subgraph_block_processing_duration_[[subgraph_hash]]_sum[1m]))",
"format": "time_series",
"instant": false,
"legendFormat": " ",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Blocks Processed",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#7C2EA3",
"colorScale": "sqrt",
"colorScheme": "interpolatePlasma",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": "prometheus",
"description": "",
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 22
},
"heatmap": {},
"hideZeroBuckets": true,
"highlightCards": true,
"id": 4,
"legend": {
"show": true
},
"reverseYBuckets": false,
"targets": [
{
"expr": "sum(increase(subgraph_block_processing_duration_[[subgraph_hash]]_bucket[1m])) by (le)",
"format": "heatmap",
"legendFormat": "{{le}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Block Processing Duration",
"tooltip": {
"show": true,
"showHistogram": false
},
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"splitFactor": null
},
"yBucketBound": "auto",
"yBucketNumber": null,
"yBucketSize": null
},
{
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#1250B0",
"colorScale": "linear",
"colorScheme": "interpolatePlasma",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": "prometheus",
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 28
},
"heatmap": {},
"hideZeroBuckets": true,
"highlightCards": true,
"id": 16,
"legend": {
"show": true
},
"pluginVersion": "6.5.1",
"reverseYBuckets": false,
"targets": [
{
"expr": "sum(increase(subgraph_transact_block_operations_duration_[[subgraph_hash]]_bucket[1m])) by (le)",
"format": "heatmap",
"legendFormat": "{{le}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Transact Block Ops Duration",
"tooltip": {
"show": true,
"showHistogram": false
},
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"splitFactor": null
},
"yBucketBound": "lower",
"yBucketNumber": null,
"yBucketSize": null
},
{
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#AD0317",
"colorScale": "linear",
"colorScheme": "interpolatePlasma",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": "prometheus",
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 34
},
"heatmap": {},
"hideZeroBuckets": true,
"highlightCards": true,
"id": 14,
"legend": {
"show": true
},
"reverseYBuckets": false,
"targets": [
{
"expr": "sum(increase(subgraph_host_fn_execution_time_[[subgraph_hash]]_bucket{host_fn_name=\"[[host_fn]]\"}[1m])) by (le)",
"format": "heatmap",
"legendFormat": "{{le}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "[[host_fn]] Execution Time",
"tooltip": {
"show": true,
"showHistogram": false
},
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"splitFactor": null
},
"yBucketBound": "auto",
"yBucketNumber": null,
"yBucketSize": null
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 40
},
"hiddenSeries": false,
"id": 62,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": true,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(subgraph_host_fn_execution_time_[[subgraph_hash]]_sum[1m])) by (host_fn_name)",
"format": "time_series",
"legendFormat": "{{host_fn_name}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Host Function Triggered",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolatePlasma",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": "prometheus",
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 46
},
"heatmap": {},
"hideZeroBuckets": true,
"highlightCards": true,
"id": 8,
"legend": {
"show": true
},
"reverseYBuckets": false,
"targets": [
{
"expr": "sum(increase(subgraph_block_trigger_count_[[subgraph_hash]]_bucket[1m])) by (le)",
"format": "heatmap",
"legendFormat": "{{le}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Block Trigger Count",
"tooltip": {
"show": true,
"showHistogram": false
},
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"splitFactor": null
},
"yBucketBound": "auto",
"yBucketNumber": null,
"yBucketSize": null
},
{
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#CC9D00",
"colorScale": "linear",
"colorScheme": "interpolatePlasma",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": "prometheus",
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 52
},
"heatmap": {},
"hideZeroBuckets": true,
"highlightCards": true,
"id": 35,
"legend": {
"show": true
},
"reverseYBuckets": false,
"targets": [
{
"expr": "sum(increase(subgraph_handler_execution_time_[[subgraph_hash]]_bucket{handler=\"[[handler]]\"}[5m])) by (le)",
"format": "heatmap",
"legendFormat": "{{le}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "[[handler]] Execution Time",
"tooltip": {
"show": true,
"showHistogram": false
},
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"splitFactor": null
},
"yBucketBound": "auto",
"yBucketNumber": null,
"yBucketSize": null
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 7,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 58
},
"hiddenSeries": false,
"id": 6,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": true,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(subgraph_handler_execution_time_[[subgraph_hash]]_sum[1m])) by (handler)",
"format": "time_series",
"legendFormat": "{{handler}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Handler Triggered",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"content": "</br>\n<center> \n <h1>GraphQL Server</h1> \n</center>",
"datasource": null,
"gridPos": {
"h": 2,
"w": 12,
"x": 0,
"y": 64
},
"id": 32,
"mode": "html",
"timeFrom": null,
"timeShift": null,
"title": "",
"transparent": true,
"type": "text"
},
{
"content": "<br/> \n<center> \n <h1>Block Ingestor</h1> \n</center>",
"datasource": null,
"gridPos": {
"h": 2,
"w": 12,
"x": 12,
"y": 64
},
"id": 31,
"mode": "html",
"timeFrom": null,
"timeShift": null,
"title": "",
"transparent": true,
"type": "text"
},
{
"cacheTimeout": null,
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolatePlasma",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": "prometheus",
"gridPos": {
"h": 9,
"w": 8,
"x": 0,
"y": 66
},
"heatmap": {},
"hideZeroBuckets": true,
"highlightCards": true,
"id": 29,
"legend": {
"show": false
},
"links": [],
"pluginVersion": "6.5.1",
"repeatDirection": "v",
"reverseYBuckets": false,
"targets": [
{
"expr": "sum(increase(subgraph_query_execution_time_bucket{subgraph_deployment=\"[[subgraph_hash]]\"}[1m])) by (le)",
"format": "heatmap",
"instant": false,
"intervalFactor": 1,
"legendFormat": "{{le}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Query Execution Time Histogram ([[subgraph_hash]])",
"tooltip": {
"show": true,
"showHistogram": false
},
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"splitFactor": null
},
"yBucketBound": "auto",
"yBucketNumber": null,
"yBucketSize": null
},
{
"aliasColors": {},
"bars": true,
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 4,
"x": 8,
"y": 66
},
"hiddenSeries": false,
"id": 26,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.5.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
"repeat": "subgraph_hash",
"repeatDirection": "v",
"scopedVars": {
"subgraph_hash": {
"selected": true,
"text": "QmWVRSE59uqfuanp2goVbAoXqwc6wfVfYnxg7bGswjP9mo",
"value": "QmWVRSE59uqfuanp2goVbAoXqwc6wfVfYnxg7bGswjP9mo"
}
},
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(subgraph_query_execution_time_bucket{subgraph_deployment=\"[[subgraph_hash]]\"}[1m])) by (le)",
"format": "heatmap",
"instant": false,
"intervalFactor": 1,
"legendFormat": "{{le}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Query Execution Time Histogram ([[subgraph_hash]])",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "series",
"name": null,
"show": true,
"values": [
"total"
]
},
"yaxes": [
{
"format": "locale",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "prometheus",
"description": "block_ingestor_panel",
"fontSize": "100%",
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 66
},
"id": 61,
"links": [],
"pageSize": null,
"pluginVersion": "6.5.1",
"repeatDirection": "v",
"showHeader": true,
"sort": {
"col": null,
"desc": false
},
"styles": [
{
"alias": "Time",
"align": "auto",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "hidden"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "/__name__/",
"thresholds": [],
"type": "hidden",
"unit": "short"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "/job/",
"thresholds": [],
"type": "hidden",
"unit": "short"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "/kubernetes_pod_name/",
"thresholds": [],
"type": "hidden",
"unit": "short"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "/instance/",
"thresholds": [],
"type": "hidden",
"unit": "short"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "/network/",
"preserveFormat": false,
"sanitize": false,
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"alias": "Latest Block",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Value",
"thresholds": [],
"type": "number",
"unit": "locale"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [],
"type": "number",
"unit": "locale"
}
],
"targets": [
{
"expr": "ethereum_chain_head_number",
"format": "table",
"instant": true,
"legendFormat": "{{network}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "",
"transform": "table",
"type": "table"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"decimals": 1,
"description": "block_ingestor_panel",
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 16,
"w": 12,
"x": 12,
"y": 73
},
"hiddenSeries": false,
"id": 10,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"hideEmpty": false,
"hideZero": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(ethereum_chain_head_number{kubernetes_pod_name=\"index-node-block-ingestor-0\"}[1m])) by (network)",
"instant": false,
"legendFormat": "{{network}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Block Syncing Rate",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 8,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 75
},
"hiddenSeries": false,
"id": 36,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"sort": "total",
"sortDesc": true,
"total": true,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "connected",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.5.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
"repeatDirection": "v",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(subgraph_query_execution_time_count[1m])) by (subgraph_deployment)",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
"legendFormat": "{{subgraph_deployment}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Queries (All Subgraphs)",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "locale",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 82
},
"hiddenSeries": false,
"id": 27,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"sort": "avg",
"sortDesc": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.5.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
"repeatDirection": "v",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(subgraph_query_execution_time_count[1m])) by (subgraph_deployment)",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
"legendFormat": "{{subgraph_deployment}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Query Rate (All Subgraphs)",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "locale",
"label": "Queries per minute per minute",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 7,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 89
},
"hiddenSeries": false,
"id": 41,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"sort": "total",
"sortDesc": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "connected",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.5.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
"repeatDirection": "v",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "increase(subgraph_query_failed_execution_time_count[1m])",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
"legendFormat": "{{subgraph_deployment}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Failed Queries (All Subgraphs)",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "locale",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "",
"schemaVersion": 22,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {
"tags": [],
"text": "QmWVRSE59uqfuanp2goVbAoXqwc6wfVfYnxg7bGswjP9mo",
"value": "QmWVRSE59uqfuanp2goVbAoXqwc6wfVfYnxg7bGswjP9mo"
},
"datasource": "postgres",
"definition": "select subgraph from deployment_schemas where id > 0",
"hide": 0,
"includeAll": false,
"index": -1,
"label": null,
"multi": false,
"name": "subgraph_hash",
"options": [
{
"selected": true,
"text": "QmWVRSE59uqfuanp2goVbAoXqwc6wfVfYnxg7bGswjP9mo",
"value": "QmWVRSE59uqfuanp2goVbAoXqwc6wfVfYnxg7bGswjP9mo"
}
],
"query": "select subgraph from deployment_schemas where id > 0",
"refresh": 0,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {
"text": "handleCommit",
"value": "handleCommit"
},
"datasource": "prometheus",
"definition": "label_values(subgraph_handler_execution_time_[[subgraph_hash]]_bucket, handler)",
"hide": 0,
"includeAll": false,
"index": -1,
"label": null,
"multi": false,
"name": "handler",
"options": [],
"query": "label_values(subgraph_handler_execution_time_[[subgraph_hash]]_bucket, handler)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {
"text": "store_get",
"value": "store_get"
},
"datasource": "prometheus",
"definition": "label_values(subgraph_host_fn_execution_time_[[subgraph_hash]]_bucket, host_fn_name)",
"hide": 0,
"includeAll": false,
"index": -1,
"label": null,
"multi": false,
"name": "host_fn",
"options": [],
"query": "label_values(subgraph_host_fn_execution_time_[[subgraph_hash]]_bucket, host_fn_name)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {
"text": "All",
"value": [
"$__all"
]
},
"datasource": "prometheus",
"definition": "ethereum_chain_head_number",
"hide": 2,
"includeAll": true,
"index": -1,
"label": null,
"multi": true,
"name": "network",
"options": [],
"query": "ethereum_chain_head_number",
"refresh": 1,
"regex": "/.*network=\"([^\"]*).*/",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Subgraph Indexing Metrics",
"uid": "e0115cae-staging-production",
"variables": {
"list": []
},
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment