27 releases (9 breaking)

✓ Uses Rust 2018 edition

0.20.4 Nov 10, 2019
0.20.1 Oct 30, 2019
0.17.0 Jul 30, 2019
0.12.1 Mar 26, 2019
Download history 47/week @ 2019-07-28 89/week @ 2019-08-04 52/week @ 2019-08-11 19/week @ 2019-08-18 92/week @ 2019-08-25 121/week @ 2019-09-01 72/week @ 2019-09-08 190/week @ 2019-09-15 59/week @ 2019-09-22 86/week @ 2019-09-29 7/week @ 2019-10-06 29/week @ 2019-10-13 38/week @ 2019-10-20 76/week @ 2019-10-27 63/week @ 2019-11-03

294 downloads per month
Used in 30 crates (12 directly)

Apache-2.0

235KB
5.5K SLoC

Rust 5K SLoC // 0.1% comments Shell 459 SLoC // 0.1% comments Python 219 SLoC // 0.1% 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/testnet-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/testnet-monitor.json, manual edits made directly in Grafana will be overwritten.

  • Check out metrics to add at https://metrics.solana.com: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/testnet-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 testnet-monitor.json in your local workspace,

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

Note that automation will eventually overwrite your manual deploy.

Dependencies

~26MB
~659K SLoC