-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
749 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Brian Gann | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
# Grafana Datatable Panel | ||
|
||
[![Twitter Follow](https://img.shields.io/twitter/follow/jepetlefeu.svg?style=social)](https://twitter.com/jepetlefeu) | ||
[![CircleCI](https://circleci.com/gh/briangann/grafana-datatable-panel.svg?style=svg)](https://circleci.com/gh/briangann/grafana-datatable-panel) | ||
[![David Dependancy Status](https://david-dm.org/briangann/grafana-datatable-panel.svg)](https://david-dm.org/briangann/grafana-datatable-panel) | ||
[![David devDependancy Status](https://david-dm.org/briangann/grafana-datatable-panel/dev-status.svg)](https://david-dm.org/briangann/grafana-datatable-panel?type=dev) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/7b3cb7018973e4ddfdac/maintainability)](https://codeclimate.com/github/briangann/grafana-datatable-panel/maintainability) | ||
[![Test Coverage](https://api.codeclimate.com/v1/badges/7b3cb7018973e4ddfdac/test_coverage)](https://codeclimate.com/github/briangann/grafana-datatable-panel/test_coverage) | ||
|
||
This panel plugin provides a [Datatables.net](http://www.datatables.net) table panel for [Grafana](http://www.grafana.com) 6.x/7.x | ||
|
||
## Screenshots | ||
|
||
### Paging enabled | ||
|
||
![Default Paging](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-basic-dark.png) | ||
|
||
### Scrolling enabled | ||
|
||
![Scrolling](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-dark-scrolling.png) | ||
|
||
### Light Theme with Paging | ||
|
||
![Light Theme with Paging](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-basic-light.png) | ||
|
||
### Numbered Rows and Compact Style | ||
|
||
![Numbered and Compact Rows](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-dark-numbered-compact.png) | ||
|
||
## Options | ||
|
||
### Options Tab | ||
|
||
![Options](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-options.png) | ||
|
||
Same options as built-in table panel | ||
|
||
### Datatable Options Tab | ||
|
||
![Datatable Options](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-dt-options.png) | ||
|
||
Table Display Options | ||
|
||
* Font Size - set font size of table content | ||
* Scroll - toggle for scrolling vs Paging | ||
* Paging Options | ||
* Rows Per Page - number of rows to display when paging is enabled | ||
* Paging type - multiple navigation options | ||
|
||
Column Aliasing | ||
|
||
* Override the name displayed for a column | ||
|
||
Column Width Hints | ||
|
||
* Provide a width "hint" in percentage or pixels ( 100px or 10% ). Note: The table will autosize as needed, but will use the hints provided. | ||
|
||
Column Sorting | ||
|
||
* Sort table by any number of columns in ascending/descending order. | ||
|
||
Table Options | ||
|
||
* Row Numbers - toggle to show row numbers | ||
* Length Change Enabled - top left dropdown for showing alternate page sizes | ||
* Search Enabled - toggle to allow searching table content (regex is enabled) | ||
* Info - Displays the "Show N of X entries" on bottom left of table | ||
* Cell Borders - show borders around each Cell (cannot be enabled with Row Borders) | ||
* Row Borders - show border between rows | ||
* Compact Rows - uses less padding for denser data display | ||
* Striped Rows - non-colored rows will be "striped" odd/even | ||
* Order Column - Highlights the column used for sorting | ||
* Hover - Highlights row on mouse hover | ||
|
||
Theme Settings | ||
|
||
* Basic theme is currently the only option, more to be added | ||
|
||
## Thresholding | ||
|
||
### Row-based threshold coloring | ||
|
||
![Thresholding with Row Coloring](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-threshold-row.png) | ||
|
||
### Cell based threshold coloring | ||
|
||
![Thresholding with Cell Coloring](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-threshold-cell.png) | ||
|
||
### Cell based threshold value coloring | ||
|
||
![Thresholding with Value Coloring](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-threshold-value.png) | ||
|
||
### RowColumn threshold coloring | ||
|
||
This option sets the row color to the "highest" threshold found for all cells in row. | ||
|
||
It also sets the color for each cell according to the threshold (you can tell which columns actually exceeded the threshold). | ||
|
||
This means - a row can have an overall color, with each cell indicating it's real threshold color. | ||
|
||
![Thresholding with RowColumn1](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-threshold-rowcolumn1.png) | ||
|
||
![Thresholding with RowColumn2](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-threshold-rowcolumn2.png) | ||
|
||
### RowColumn threshold coloring including row counter | ||
|
||
Same as above, but with row counter included | ||
|
||
![Thresholding with RowColumn including row count](https://raw.githubusercontent.com/briangann/grafana-datatable-panel/master/src/screenshots/datatable-threshold-rowcolumn-rownumbers.png) | ||
|
||
## Features | ||
|
||
* Feature parity with built-in Grafana Table Panel | ||
* Row coloring uses the "highest" threshold color of all columns | ||
* New "RowColumn" threshold color option: | ||
Sets color to "highest" threshold found for all cells in row. | ||
Also sets color for each cell according to the threshold. | ||
This means - a row can have an overall color, with each cell indicating it's real threshold color. | ||
* Set font size for rows | ||
* Scrolling | ||
* Paging | ||
* Preset page sizes | ||
* Multiple paging types | ||
* Dropdown for page size | ||
* Row Numbers reactive to filtering | ||
* Searchable table content (filtering), regex enabled | ||
* Columns names can be aliased | ||
* URLs inside row text can be "clicked" | ||
* Rows can have a click-through URL | ||
* Multi-Column Sorting | ||
* Horizontal scrolling enabled when columns are wider than panel | ||
|
||
## TODO | ||
|
||
* [+] Column is not working | ||
|
||
## Building | ||
|
||
This plugin relies on Yarn, typical build sequence: | ||
|
||
```BASH | ||
yarn install | ||
yarn build | ||
``` | ||
|
||
For development, you can run: | ||
|
||
```BASH | ||
yarn install | ||
yarn watch | ||
``` | ||
|
||
The code will be parsed then copied into "dist" if the build passes without errors. | ||
|
||
## Docker Support | ||
|
||
A docker-compose.yml file is include for easy development and testing, just run | ||
|
||
```BASH | ||
docker-compose up | ||
``` | ||
|
||
Then browse to (<http://localhost:3000>) | ||
|
||
## RPM | ||
|
||
A spec file is included to facilitate RPM based deployments, to generate run | ||
|
||
```BASH | ||
make rpm | ||
``` | ||
|
||
## External Dependencies | ||
|
||
* Grafana 4.x/5.x/6.x | ||
|
||
## Build Dependencies | ||
|
||
* yarn | ||
|
||
## Acknowledgements | ||
|
||
This panel is based on the "Table" panel by GrafanaLabs |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*! | ||
DataTables 1.10.20 | ||
©2008-2019 SpryMedia Ltd - datatables.net/license | ||
*/ | ||
|
||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
|
||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
|
||
/*! DataTables 1.10.20 | ||
* ©2008-2019 SpryMedia Ltd - datatables.net/license | ||
*/ |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.