Skip to content

Commit 3ef4b13

Browse files
committed
Option to hide first column & table header, value transform row & column
1 parent 45b7f40 commit 3ef4b13

File tree

13 files changed

+114
-32
lines changed

13 files changed

+114
-32
lines changed

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,23 @@ Example of matching patterns:
196196
Value transformation based on thresholds
197197
----------------------------------------
198198

199-
Logic is same as background color. But the value to be displayed can be altered here. Display value will be replaced with the value provided. Values are seperated by pipe. if the value is wrapped with _, then it will represent the actual value
199+
Logic is same as background color. But the value to be displayed can be altered here. Display value will be replaced with the value provided. Values are seperated by pipe. if the value is wrapped with _, then it will represent the actual value.
200+
201+
`_value_` will be replaced by actual value
202+
203+
`_row_name_` will be replaced by row name. This will be useful when you hide the first column.
204+
205+
`_col_name_` will be replaced by row name. This will be useful when you hide the table header.
200206

201207
Example transformation patterns :
202208

203209
_value_|_value_|_value_
204210
GOOD|BETTER|BAD
205211
GOOD (_value_)|_value_|_value
206212
Time to party|Ill|RIP
213+
_col_name_ : _value_| _col_name_ : _value_| _col_name_ : _value_
214+
_row_name_ : _value_| _row_name_ : _value_| _row_name_ : _value_
215+
_row_name_ _col_name_ : _value_| _row_name_ _col_name_ : _value_| _row_name_ _col_name_ : _value_
207216

208217

209218
Sample value transformation: (Assume your metrics results, 95 and it is percentage data type)
@@ -222,6 +231,13 @@ If your output have more rows and if you require to hide certain rows based on t
222231
![Filter rows based on value](https://raw.githubusercontent.com/yesoreyeram/yesoreyeram-boomtable-panel/master/dist/src/img/filters.png)
223232

224233

234+
Repeater / Multi stat Example
235+
-----------------
236+
237+
You can use the boom table as multi stat panel. Refer the details given in issue [#40](https://github.com/yesoreyeram/yesoreyeram-boomtable-panel/issues/40)
238+
239+
![Multi stat panel / Repeater ](https://user-images.githubusercontent.com/153843/47859058-4fbf8180-dde5-11e8-8b27-2ef94919d1f8.png)
240+
225241

226242
Prometheus Guidelines
227243
---------------------
@@ -250,6 +266,7 @@ Same as other time series data sources. You need to properly format your legend
250266

251267
* Time based thresholds
252268
* Filter option to hide rows based on value
269+
* Option to hide the first column and table header
253270

254271
**Version 0.3.x**
255272

dist/README.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Supported / Tested Data Sources :
2929
* InfluxDB
3030
* Prometheus
3131
* Azure Monitor
32-
* AWS CloudWatch
32+
* AWS Cloud Watch
3333

3434
Tested Grafana versions :
3535
-------------------------
@@ -196,14 +196,23 @@ Example of matching patterns:
196196
Value transformation based on thresholds
197197
----------------------------------------
198198

199-
Logic is same as background color. But the value to be displayed can be altered here. Display value will be replaced with the value provided. Values are seperated by pipe. if the value is wrapped with _, then it will represent the actual value
199+
Logic is same as background color. But the value to be displayed can be altered here. Display value will be replaced with the value provided. Values are seperated by pipe. if the value is wrapped with _, then it will represent the actual value.
200+
201+
`_value_` will be replaced by actual value
202+
203+
`_row_name_` will be replaced by row name. This will be useful when you hide the first column.
204+
205+
`_col_name_` will be replaced by row name. This will be useful when you hide the table header.
200206

201207
Example transformation patterns :
202208

203209
_value_|_value_|_value_
204210
GOOD|BETTER|BAD
205211
GOOD (_value_)|_value_|_value
206212
Time to party|Ill|RIP
213+
_col_name_ : _value_| _col_name_ : _value_| _col_name_ : _value_
214+
_row_name_ : _value_| _row_name_ : _value_| _row_name_ : _value_
215+
_row_name_ _col_name_ : _value_| _row_name_ _col_name_ : _value_| _row_name_ _col_name_ : _value_
207216

208217

209218
Sample value transformation: (Assume your metrics results, 95 and it is percentage data type)
@@ -222,6 +231,13 @@ If your output have more rows and if you require to hide certain rows based on t
222231
![Filter rows based on value](https://raw.githubusercontent.com/yesoreyeram/yesoreyeram-boomtable-panel/master/dist/src/img/filters.png)
223232

224233

234+
Repeater / Multi stat Example
235+
-----------------
236+
237+
You can use the boom table as multi stat panel. Refer the details given in issue [#40](https://github.com/yesoreyeram/yesoreyeram-boomtable-panel/issues/40)
238+
239+
![Multi stat panel / Repeater ](https://user-images.githubusercontent.com/153843/47859058-4fbf8180-dde5-11e8-8b27-2ef94919d1f8.png)
240+
225241

226242
Prometheus Guidelines
227243
---------------------
@@ -250,6 +266,7 @@ Same as other time series data sources. You need to properly format your legend
250266

251267
* Time based thresholds
252268
* Filter option to hide rows based on value
269+
* Option to hide the first column and table header
253270

254271
**Version 0.3.x**
255272

dist/app/app.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/app/app.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/module.js

+18-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/module.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/partials/options.html

+16
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,20 @@ <h4>Options</h4>
3333
ng-blur="ctrl.render()" data-ng-change="ctrl.render();">
3434
</div>
3535
</div>
36+
</div>
37+
<div class="gf-form">
38+
<div class="gr-form-inline">
39+
<div class="gf-form">
40+
<label class="gf-form-label width-20">Hide First Column</label>
41+
<input type="checkbox" class="width-4" ng-model="ctrl.panel.hide_first_column" ng-blur="ctrl.render()" ng-change="ctrl.render()">
42+
</div>
43+
</div>
44+
</div>
45+
<div class="gf-form">
46+
<div class="gr-form-inline">
47+
<div class="gf-form">
48+
<label class="gf-form-label width-20">Hide Headers</label>
49+
<input type="checkbox" class="width-4" ng-model="ctrl.panel.hide_headers" ng-blur="ctrl.render()" ng-change="ctrl.render()">
50+
</div>
51+
</div>
3652
</div>

dist/plugin.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"url": "https://github.com/yesoreyeram/yesoreyeram-boomtable-panel"
2626
}
2727
],
28-
"version": "0.4.4"
28+
"version": "0.4.5"
2929
},
3030
"dependencies": {
3131
"grafanaVersion": "4.x.x",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yesoreyeram-boomtable-panel",
3-
"version": "0.4.4",
3+
"version": "0.4.5",
44
"description": "Boom table panel for Graphite, InfluxDB, Prometheus",
55
"main": "dist/module.js",
66
"scripts": {

plugin.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"url": "https://github.com/yesoreyeram/yesoreyeram-boomtable-panel"
2626
}
2727
],
28-
"version": "0.4.4"
28+
"version": "0.4.5"
2929
},
3030
"dependencies": {
3131
"grafanaVersion": "4.x.x",

src/app/app.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const plugin_id = "yesoreyeram-boomtable-panel";
1212
const config: any = {
1313
plugin_id: plugin_id,
1414
debug_mode: false,
15+
hide_first_column : false,
16+
hide_headers : false,
1517
error: undefined,
1618
groupedData: undefined,
1719
panelDefaults: {

0 commit comments

Comments
 (0)