Skip to content

Commit

Permalink
chore: set graphTooltip to shared crosshair (#5563)
Browse files Browse the repository at this point in the history
Set graphTooltip to shared crosshair
  • Loading branch information
dapplion authored May 30, 2023
1 parent 245e22c commit 8490369
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dashboards/lodestar_block_processor.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_block_production.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_bls_thread_pool.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"iteration": 1661342107287,
"links": [
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_debug_gossipsub.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_discv5.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"description": "",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_execution_engine.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_libp2p.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_multinode.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_networking.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_rest_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"iteration": 1661342552530,
"links": [
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_state_cache_regen.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"description": "",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"iteration": 1661328981106,
"links": [
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_sync.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"iteration": 1661334299473,
"links": [
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_validator_client.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_validator_monitor.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_vm_host.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": null,
"links": [
{
Expand Down
4 changes: 4 additions & 0 deletions scripts/lint-grafana-dashboard.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ no-console
* @property {any} [__elements]
* @property {Input[]} [__inputs]
* @property {any} [__requires]
* @property {number} [graphTooltip]
* @property {null} [id]
* @property {Panel[]} [panels]
* @property {string[]} [tags]
Expand Down Expand Up @@ -107,6 +108,9 @@ export function lintGrafanaDashboard(json) {
...json,
};

// Set to "Shared crosshair" option
json.graphTooltip = 1;

// null id to match "Export for sharing externally" format, only set to null if set to respect order
if (json !== undefined) {
json.id = null;
Expand Down

0 comments on commit 8490369

Please sign in to comment.