Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Grafana Dashboard Enhancements

cryptovestor21 edited this page Sep 14, 2020 · 7 revisions

Below are some basic instruction for adding some extra dashboards to the existing Graph dashboards. You might find some of them useful. If you have created more useful dashboard views for Graph metrics, please share them in this document.

The link below is a json for a dashboard with all the panels below. If you prefer to add them separately/manually, you can ignore this and continue through the guide, which contains manual instructions and jsons for each individual panel.

AllGraphCustomPanels.json

Indexing status

NOTE: You must be running the latest version of the graph-node source code for these metrics to work (as of 11th Sept2020)

New panels: Blocks behind over time and Blocks behind over time (all subgraphs)

These panels present the current blocks behind for each subgraph - one shows the data per subgraph and the other shows the data as a sum of all subgraphs. This can be useful in getting an immediate view on historical indexing performance across your deployment. This data comes from the graph-node metrics endpoint on port 8040.

If you know how to use them you can import these panel jsons (update the datasource to your own), otherwise follow the guides below.

BlocksBehindOverTime

BlocksBehindOverTimeAllSubgraphs

Add a new panel and use your main Prometheus endpoint as the data source.

Set the metric query to deployment_blocks_behind and the visualization type in the panel tab to Graph

In order to create the same panel but as a total for all subgraphs, repeat the above instructions but change the query to sum(deployment_blocks_behind)

Make sure to apply and save your changes.

New panels: Blocks processed per minute and Blocks processed per minute (all subgraphs)

These panels present the historical performance of blocks processed per minute - one shows the data per subgraph and the other shows the data as a sum of all subgraphs. This can be useful in getting an immediate view on historical indexing performance across your deployment.

If you know how to use them you can import these panel jsons (update the datasource to your own), otherwise follow the guides below.

BlocksProcessedPerMinute

BlocksProcessedPerMinuteAllSubgraphs

Add a new panel and use your main Prometheus endpoint as the data source.

Set the metric query to increase(deployment_block_processing_duration_sum[1m]) and the visualization type to Graph

If you want some extra summary information in the legend, you can add min, max, avg values in the legend section of the panel tab:

In order to create the same panel but as a total for all subgraphs, repeat the above instruction but change the query to sum(increase(deployment_block_processing_duration_sum[1m]))

Make sure to apply and save your changes.

Eth RPC endpoint Performance

NOTE: You must be running the latest version of the graph-node source code for these metrics to work (as of 11th Sept2020)

New panels: Eth RPC Request Duration per Subgraph & Eth RPC Errors per minute (all subgraphs)

These panels provide some Eth node RPC endpoint performance data from the graph-node metrics endpoint on port 8040.

The panel jsons are below, you will need to update the data sources "datasource": "Prometheus_graph-indexer-0" to your own datasource for your graph nodes.

EthRPCRequestDurationPerSubgraph

EthRPCErrorsAllSubgraphs