Skip to content

Commit

Permalink
Bump logs-lib dep to grafana 11 (#1344)
Browse files Browse the repository at this point in the history
Add wrapPanels to calculate x,y properly
  • Loading branch information
v-zhuravlev authored Oct 15, 2024
1 parent 7a817b8 commit 3805ed5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion logs-lib/jsonnetfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"source": {
"git": {
"remote": "https://github.com/grafana/grafonnet.git",
"subdir": "gen/grafonnet-v10.0.0"
"subdir": "gen/grafonnet-v11.0.0"
}
},
"version": "main"
Expand Down
26 changes: 14 additions & 12 deletions logs-lib/logs/dashboards.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,20 @@ function(
+ g.dashboard.withUid(g.util.string.slugify(title))
+ g.dashboard.withVariables(variables.toArray)
+ g.dashboard.withPanels(
(
if showLogsVolume then
[panels.logsVolume
+ g.panel.timeSeries.gridPos.withH(6)
+ g.panel.timeSeries.gridPos.withW(24)]
else []
g.util.grid.wrapPanels(
(
if showLogsVolume then
[panels.logsVolume
+ g.panel.timeSeries.gridPos.withH(6)
+ g.panel.timeSeries.gridPos.withW(24)]
else []
)
+
[
panels.logs
+ g.panel.logs.gridPos.withH(18)
+ g.panel.logs.gridPos.withW(24),
]
)
+
[
panels.logs
+ g.panel.logs.gridPos.withH(18)
+ g.panel.logs.gridPos.withW(24),
]
),
}
2 changes: 1 addition & 1 deletion logs-lib/logs/g.libsonnet
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import 'github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet'
import 'github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/main.libsonnet'

0 comments on commit 3805ed5

Please sign in to comment.