Skip to content

Commit

Permalink
Add textPanel to grafana builder. (#341)
Browse files Browse the repository at this point in the history
* Add textPanel to grafana builder.

Signed-off-by: Tom Wilkie <[email protected]>

* make fmt

Signed-off-by: Tom Wilkie <[email protected]>
  • Loading branch information
tomwilkie authored Sep 15, 2020
1 parent c806cad commit 2cc8d1d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions grafana-builder/grafana.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,25 @@
],
},

textPanel(title, markdown):: {
type: 'text',
title: title,
options: {
content: markdown,
mode: 'markdown',
},
transparent: true,
datasource: null,
timeFrom: null,
timeShift: null,
fieldConfig: {
defaults: {
custom: {},
},
overrides: [],
},
},

stack:: {
stack: true,
fill: 10,
Expand Down

0 comments on commit 2cc8d1d

Please sign in to comment.