Skip to content

Commit

Permalink
Updated the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
smanda99 committed Dec 27, 2023
1 parent f0b5587 commit 1f34f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/etcd-on-cluster-dashboard/panels.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonn
base(title, unit, targets, gridPos):
timeSeries.new(title)
+ timeSeries.queryOptions.withTargets(targets)
+ timeSeries.datasource.withType('elasticsearch')
+ timeSeries.datasource.withType('prometheus')
+ timeSeries.datasource.withUid('$Datasource')
+ timeSeries.standardOptions.withUnit(unit)
+ timeSeries.gridPos.withX(gridPos.x)
Expand Down Expand Up @@ -65,7 +65,7 @@ local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonn

base(title, unit, targets, gridPos):
stat.new(title)
+ stat.datasource.withType('elasticsearch')
+ stat.datasource.withType('prometheus')
+ stat.datasource.withUid('$Datasource')
+ stat.standardOptions.withUnit(unit)
+ stat.queryOptions.withTargets(targets)
Expand Down

0 comments on commit 1f34f56

Please sign in to comment.