You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rozetko
e6ec2cf102
|
8 months ago | |
---|---|---|
.config | 8 months ago | |
src | 9 months ago | |
.eslintrc | 8 months ago | |
.gitignore | 8 months ago | |
.gitlab-ci.yml | 3 years ago | |
.prettierrc.js | 8 months ago | |
CHANGELOG.md | 8 months ago | |
LICENSE | 3 years ago | |
README.md | 8 months ago | |
docker-compose.yaml | 8 months ago | |
jest-setup.js | 8 months ago | |
jest.config.js | 8 months ago | |
package.json | 8 months ago | |
tsconfig.json | 8 months ago | |
yarn.lock | 8 months ago |
README.md
Grafana Chartwerk Panel (beta)
Grafana Chartwerk Panel renders metrics using Chartwerk libraries. For now, it can render as Gauge. We are working on adding new visualizations.
Features
- 3 types of visualizations:
- Gauge
- Line Chart (coming soon)
- Bar Chart (coming soon)
- Gauge: dynamic thresholds and min / max
- Gauge: conditional icons displaying
- Gauge: reversed direction
How to use
- Create a new panel and select Chartwerk as the visualization
- Add queries with unique aliases
- Go to the Options Tab and setup panel:
- Choose visualization type
- Select metric in the Value -> Metric dropdown (by default, the first metric is used)
Demo
see demo
Options [Gauge]
- Visualization:
- Pod: option to select chart type
- Value:
- Metric: select metric query from dropdown
- Extemum:
- Min:
- type number for static minimum value OR
- enable "Use metric" toggle switch to select metric as minimun
- default value: 0
- Max:
- type number for static maximum OR
- enable "Use metric" toggle switch to select metric as maximum
- default value: maximum of metric query
- Min:
Installation
Linux / Mac OS X
-
Navigate to either:
<GRAFANA_PATH>/data/plugins
(when installed from tarball or source)- or
/var/lib/grafana/plugins
(when installed from.deb
/.rpm
package)
-
Download Chartwerk panel
wget -O corpglory-chartwerk-panel-0.5.1.zip https://code.corpglory.net/attachments/d4257ab5-65f0-4c87-8b89-3803b26d504f
- Unpack downloaded files
unzip -u corpglory-chartwerk-panel-0.5.1.zip
- Restart grafana-server
- For grafana installed via Standalone Linux Binaries:
- Stop any running instances of grafana-server
- Start grafana-server by:
$GRAFANA_PATH/bin/grafana-server
- For grafana installed via Package Manager:
- type in
systemctl restart grafana-server
- type in
- For grafana installed via Standalone Linux Binaries:
Grafana in Docker
You can install Chartwerk panel to Grafana in Docker passing it as environment variable (as described in Grafana docs)
docker run \
-p 3000:3000 \
-e "GF_INSTALL_PLUGINS=https://code.corpglory.net/attachments/d4257ab5-65f0-4c87-8b89-3803b26d504f;corpglory-chartwerk-panel" \
grafana/grafana