Skip to content

Commit

Permalink
deps: use new grafonnet library
Browse files Browse the repository at this point in the history
grafana/grafonnet-lib is deprecated now in favor of grafana/grafonnet.

Part of #215
  • Loading branch information
DifferentialOrange committed Jun 23, 2023
1 parent c6acba2 commit 15d7639
Show file tree
Hide file tree
Showing 27 changed files with 92 additions and 32 deletions.
2 changes: 1 addition & 1 deletion dashboard/build/dashboard.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local dashboard = import 'dashboard/dashboard.libsonnet';
local panels_common = import 'dashboard/panels/common.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/cluster.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local timeseries = import 'dashboard/grafana/timeseries.libsonnet';
local common = import 'dashboard/panels/common.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/common.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local variable = import 'dashboard/variable.libsonnet';

Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/cpu.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/crud.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/expirationd.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/http.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/mvcc.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/net.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/operations.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/replication.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local timeseries = import 'dashboard/grafana/timeseries.libsonnet';
local common = import 'dashboard/panels/common.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/slab.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common = import 'dashboard/panels/common.libsonnet';

Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/space.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/tdg/file_connectors.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common_utils = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/tdg/graphql.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common_utils = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/tdg/iproto.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common_utils = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/tdg/kafka/brokers.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common_utils = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/tdg/kafka/topics.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common_utils = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/tdg/kafka/utils.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common_utils = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/tdg/rest_api.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common_utils = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/tdg/tasks.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common_utils = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/tdg/tuples.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common_utils = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion dashboard/panels/vinyl.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local common = import 'dashboard/panels/common.libsonnet';
local variable = import 'dashboard/variable.libsonnet';
Expand Down
6 changes: 3 additions & 3 deletions jsonnetfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
{
"source": {
"git": {
"remote": "https://github.com/grafana/grafonnet-lib",
"subdir": "grafonnet"
"remote": "https://github.com/grafana/grafonnet.git",
"subdir": "gen/grafonnet-latest"
}
},
"version": "master"
"version": "main"
}
],
"legacyImports": true
Expand Down
68 changes: 64 additions & 4 deletions jsonnetfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,72 @@
{
"source": {
"git": {
"remote": "https://github.com/grafana/grafonnet-lib",
"subdir": "grafonnet"
"remote": "https://github.com/crdsonnet/crdsonnet.git",
"subdir": "crdsonnet"
}
},
"version": "cc1626a1b4dee45c99b78ddd9714dfd5f5d7816e",
"sum": "nkgrtMYPCq/YB4r3mKyToepaLhicwWnxDdGIodPpzz0="
"version": "af14e3b8e958e1e4155d67689bd9d38cb7169698",
"sum": "HH+GjMwZCo65Q4SBG2M2Ezz+RekZmc783vZsXvVyPOA="
},
{
"source": {
"git": {
"remote": "https://github.com/grafana/grafonnet.git",
"subdir": "gen/grafonnet-latest"
}
},
"version": "df35a38b3f780a07a85e30b6f9a685bfd9215f09",
"sum": "IvPpzRwHyqJxomhjMJn13mNITiRnkaO4JvQfaSvqxXk="
},
{
"source": {
"git": {
"remote": "https://github.com/grafana/grafonnet.git",
"subdir": "gen/grafonnet-v9.5.0"
}
},
"version": "df35a38b3f780a07a85e30b6f9a685bfd9215f09",
"sum": "F3Ousx+lyY9t1iIKQivcKTXcz6k+dvPaPTJUOl3BXto="
},
{
"source": {
"git": {
"remote": "https://github.com/grafana/grafonnet.git",
"subdir": "grafonnet-base"
}
},
"version": "df35a38b3f780a07a85e30b6f9a685bfd9215f09",
"sum": "yEEbok/M9kkTRlw1NSZWZAiGG0PGrUJ7HXP0ang7GIU="
},
{
"source": {
"git": {
"remote": "https://github.com/grafana/grok.git",
"subdir": "jsonnet/v9.5.0"
}
},
"version": "f6c0c4cd6fc1902eb4f920d82315767cd61deea4",
"sum": "gvlwq6BxVxxJwoXv2PUgLHL0/DKvfBZAQfdx72QWhXI="
},
{
"source": {
"git": {
"remote": "https://github.com/jsonnet-libs/docsonnet.git",
"subdir": "doc-util"
}
},
"version": "ff76f6d8edde6366c6dcf81a356481b0e344566b",
"sum": "OxjkWDF0oHmwV52hhyoFW3bwtwgke8s/EOPNRiICPTI="
},
{
"source": {
"git": {
"remote": "https://github.com/jsonnet-libs/xtd.git",
"subdir": ""
}
},
"version": "d1929c3c1728274424a21a617f1b82095685d640",
"sum": "DHqlMNfQH/eCWHbHD2Ouc/bH00AwTkCS86z6cgzQ7UI="
}
],
"legacyImports": false
Expand Down
2 changes: 1 addition & 1 deletion tests/InfluxDB/dashboard_with_custom_panels.jsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local config = import 'dashboard/build/config.libsonnet';
local dashboard = import 'dashboard/build/dashboard.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion tests/Prometheus/dashboard_with_custom_panels.jsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local grafana = import 'grafonnet/grafana.libsonnet';
local grafana = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';

local config = import 'dashboard/build/config.libsonnet';
local dashboard = import 'dashboard/build/dashboard.libsonnet';
Expand Down

0 comments on commit 15d7639

Please sign in to comment.