Update Grafana dashboard in Monitor node page #6161
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Updated the Grafana dashboard used in the "Installing Grafana" section of the "Monitor your node" wiki page.
Issue
The reason of this update is that I tried to use the My Polkadot Metrics dashboard but most of the metrics are outdated so I do not get any data on the dashboard.
Some examples of outdated metrics are the following (while syncing the Polkadot chain with
./target/release/polkadot --chain polkadot --prometheus-external
) :polkadot
while the node exposes metrics with the prefixsubstrate
, e.g.:polkadot_tasks_polling_started_total
-> metric exposed from nodesubstrate_tasks_polling_started_total
polkadot_sub_libp2p_peers_count
->substrate_sub_libp2p_peers_count
polkadot_load_avg
,polkadot_cpu_usage_percentage
orpolkadot_memory_usage_bytes
are not found under the list of metrics that the node exposes (http://localhost:9615/metrics
). Even when I change the prefix frompolkadot
tosubstrate
.Proposed Solution
Use the dashboard Substrate Node Metrics which is an updated version of the "My Polkadot Metrics" dashboard wtih some extra panels. When imported it will show data like in the screenshot below: