83 releases (36 stable)

✓ Uses Rust 2018 edition

new 1.1.13 May 18, 2020
1.1.7 Apr 24, 2020
1.1.0 Mar 31, 2020
0.23.8 Feb 29, 2020
0.12.1 Mar 26, 2019

#76 in Cryptocurrencies

Download history 66/week @ 2020-01-24 83/week @ 2020-01-31 90/week @ 2020-02-07 201/week @ 2020-02-14 366/week @ 2020-02-21 423/week @ 2020-02-28 155/week @ 2020-03-06 143/week @ 2020-03-13 230/week @ 2020-03-20 132/week @ 2020-03-27 229/week @ 2020-04-03 658/week @ 2020-04-10 167/week @ 2020-04-17 133/week @ 2020-04-24 56/week @ 2020-05-01 92/week @ 2020-05-08

1,015 downloads per month
Used in 46 crates (22 directly)

Apache-2.0 and maybe MPL-2.0

360KB
9K SLoC

Ruby HTML 8K SLoC // 0.1% comments Scons 471 SLoC // 0.1% comments PureScript 260 SLoC // 0.1% comments Idris 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.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/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.solana.com:3000/org/apikeys"
$ metrics/publish-metrics-dashboard.sh (edge|beta|stable)

Note that automation will eventually overwrite your manual deploy.

Dependencies

~11–16MB
~361K SLoC