10 stable releases

1.14.17 Mar 8, 2023
1.14.3 Oct 15, 2022
1.10.34 Jul 23, 2022
1.9.29 Jun 6, 2022
1.6.19 Aug 15, 2021

#20 in #safecoin

Download history 109/week @ 2024-08-31 46/week @ 2024-09-07 63/week @ 2024-09-14 115/week @ 2024-09-21 75/week @ 2024-09-28 18/week @ 2024-10-05 42/week @ 2024-10-12 42/week @ 2024-10-19 65/week @ 2024-10-26 40/week @ 2024-11-02 19/week @ 2024-11-09 29/week @ 2024-11-16 64/week @ 2024-11-23 93/week @ 2024-11-30 90/week @ 2024-12-07 45/week @ 2024-12-14

307 downloads per month
Used in 37 crates (13 directly)

Apache-2.0

535KB
11K SLoC

Rust 10K SLoC // 0.0% comments Bitbake 560 SLoC // 0.1% comments Shell 458 SLoC // 0.1% comments Python 156 SLoC // 0.0% comments INI 10 SLoC // 0.2% comments

Metrics

Testnet Grafana Dashboard

There are three versions of the testnet dashboard, corresponding to the three release channels:

The dashboard for each channel is defined from the metrics/scripts/grafana-provisioning/dashboards/cluster-monitor.json source file in the git branch associated with that channel, and deployed by automation running ci/publish-metrics-dashboard.sh.

A deploy can be triggered at any time via the New Build button of https://buildkite.com/solana-labs/publish-metrics-dashboard.

Modifying a Dashboard

Dashboard updates are accomplished by modifying metrics/scripts/grafana-provisioning/dashboards/cluster-monitor.json, manual edits made directly in Grafana will be overwritten.

  • Check out metrics to add at https://metrics.safecoin.org:8888/ in the data explorer.
  • When editing a query for a dashboard graph, use the "Toggle Edit Mode" selection behind the hamburger button to use raw SQL and copy the query into the text field. You may have to fixup the query with the dashboard variables like $testnet or $timeFilter, check other functioning fields in the dashboard for examples.
  1. Open the desired dashboard in Grafana
  2. Create a development copy of the dashboard by selecting Save As.. in the Settings menu for the dashboard
  3. Edit dashboard as desired
  4. Extract the JSON Model by selecting JSON Model in the Settings menu. Copy the JSON to the clipboard and paste into metrics/scripts/grafana-provisioning/dashboards/cluster-monitor.json,
  5. Delete your development dashboard: Settings => Delete

Deploying a Dashboard Manually

If you need to immediately deploy a dashboard using the contents of cluster-monitor.json in your local workspace,

$ export GRAFANA_API_TOKEN="an API key from https://metrics.safecoin.org:3000/org/apikeys"
$ metrics/publish-metrics-dashboard.sh (edge|beta|stable)

Note that automation will eventually overwrite your manual deploy.

Dependencies

~17–35MB
~542K SLoC