Skip to content

Commit 612ad7c

Browse files
authored
grafana_builder: add dashboard link func (#683)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
1 parent 24ef3e4 commit 612ad7c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

grafana-builder/grafana.libsonnet

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,23 @@
7070
},
7171
},
7272

73+
dashboardLinkUrl(title, url):: self {
74+
links+: [
75+
{
76+
asDropdown: false,
77+
icon: 'external link',
78+
includeVars: true,
79+
keepTime: true,
80+
tags: [],
81+
targetBlank: true,
82+
title: title,
83+
tooltip: '',
84+
type: 'link',
85+
url: url,
86+
},
87+
],
88+
},
89+
7390
// Stuff that is materialised.
7491
uid: uid,
7592
annotations: {

0 commit comments

Comments
 (0)