This repository was archived by the owner on Jun 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +39
-3
lines changed Expand file tree Collapse file tree 2 files changed +39
-3
lines changed Original file line number Diff line number Diff line change 9
9
* @param datasource (optional) Panel datasource.
10
10
* @param unit (optional) The unit of the data.
11
11
* @param thresholds (optional) An array of threashold values.
12
- * @param decimals (optional) Number of decimal places to show.
13
12
*
14
13
* @method addTarget(target) Adds a target object.
15
14
* @method addTargets(targets) Adds an array of targets.
20
19
datasource=null ,
21
20
unit=null ,
22
21
thresholds=[],
23
- decimals=null ,
24
22
):: {
25
23
type: 'bargauge' ,
26
24
title: title,
30
28
],
31
29
fieldConfig: {
32
30
defaults: {
33
- [if decimals != null then 'decimals' ]: decimals,
34
31
unit: unit,
35
32
thresholds: {
36
33
mode: 'absolute' ,
Original file line number Diff line number Diff line change 5
5
"4xx" : " #F2C96D" ,
6
6
"5xx" : " #BF1B00"
7
7
},
8
+ "breakPoint" : null ,
9
+ "cacheTimeout" : null ,
10
+ "combine" : {
11
+ "label" : " Others" ,
12
+ "threshold" : 0
13
+ },
8
14
"datasource" : " $PROMETHEUS" ,
15
+ "decimals" : null ,
9
16
"description" : " description" ,
17
+ "format" : " short" ,
10
18
"legend" : {
19
+ "header" : " " ,
11
20
"percentage" : true ,
12
21
"show" : true ,
22
+ "sort" : " avg" ,
23
+ "sortDesc" : true ,
13
24
"values" : true
14
25
},
15
26
"legendType" : " Right side" ,
19
30
"repeatDirection" : " h" ,
20
31
"span" : 12 ,
21
32
"targets" : [ ],
33
+ "timeFrom" : null ,
34
+ "timeShift" : null ,
22
35
"title" : " test" ,
23
36
"type" : " grafana-piechart-panel" ,
24
37
"valueName" : " current"
25
38
},
26
39
"basic" : {
27
40
"aliasColors" : { },
41
+ "breakPoint" : null ,
42
+ "cacheTimeout" : null ,
43
+ "combine" : {
44
+ "label" : " Others" ,
45
+ "threshold" : 0
46
+ },
28
47
"datasource" : null ,
48
+ "decimals" : null ,
29
49
"description" : " " ,
50
+ "format" : " short" ,
30
51
"legend" : {
52
+ "header" : " " ,
31
53
"percentage" : true ,
32
54
"show" : true ,
55
+ "sort" : " avg" ,
56
+ "sortDesc" : true ,
33
57
"values" : true
34
58
},
35
59
"legendType" : " Right side" ,
36
60
"pieType" : " pie" ,
37
61
"span" : 12 ,
38
62
"targets" : [ ],
63
+ "timeFrom" : null ,
64
+ "timeShift" : null ,
39
65
"title" : " test" ,
40
66
"type" : " grafana-piechart-panel" ,
41
67
"valueName" : " current"
42
68
},
43
69
"targets" : {
44
70
"aliasColors" : { },
71
+ "breakPoint" : null ,
72
+ "cacheTimeout" : null ,
73
+ "combine" : {
74
+ "label" : " Others" ,
75
+ "threshold" : 0
76
+ },
45
77
"datasource" : null ,
78
+ "decimals" : null ,
46
79
"description" : " " ,
80
+ "format" : " short" ,
47
81
"legend" : {
82
+ "header" : " " ,
48
83
"percentage" : true ,
49
84
"show" : true ,
85
+ "sort" : " avg" ,
86
+ "sortDesc" : true ,
50
87
"values" : true
51
88
},
52
89
"legendType" : " Right side" ,
62
99
"refId" : " B"
63
100
}
64
101
],
102
+ "timeFrom" : null ,
103
+ "timeShift" : null ,
65
104
"title" : " with targets" ,
66
105
"type" : " grafana-piechart-panel" ,
67
106
"valueName" : " current"
You can’t perform that action at this time.
0 commit comments