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.

87 lines
2.6 KiB

2 years ago
# Grafana Chartwerk Panel (beta)
<p align="center"><img src="https://code.corpglory.net/chartwerk/grafana-chartwerk-panel/raw/branch/main/src/assets/logo.svg" width="150" height="150" /></div>
2 years ago
2 years ago
**Grafana Chartwerk Panel** renders metrics using Chartwerk libraries. For now, it can render as Gauge. We are working on adding new visualizations.
2 years ago
4 weeks ago
![image](https://code.corpglory.net/chartwerk/grafana-chartwerk-panel/raw/branch/main/src/assets/img/gauge.png)
2 years ago
## Features
2 years ago
- 3 types of visualizations:
- Gauge
- Line Chart (coming soon)
- Bar Chart (coming soon)
- Gauge: dynamic thresholds and min / max
- Gauge: conditional icons displaying
2 years ago
- Gauge: reversed direction
## How to use
1. Create a new panel and select Chartwerk as the visualization
2 years ago
2. Add queries with unique aliases
2 years ago
3. Go to the Options Tab and setup panel:
2 years ago
- Choose visualization type
- Select metric in the Value -> Metric dropdown (by default, the first metric is used)
2 years ago
## Options [Gauge]
- Visualization:
- Pod: option to select chart type
- Value:
- Metric: select metric query from dropdown
- Extemum:
2 years ago
- Min:
- type number for static minimum value OR
2 years ago
- enable "Use metric" toggle switch to select metric as minimun
2 years ago
- default value: 0
2 years ago
- Max:
2 years ago
- type number for static maximum OR
2 years ago
- enable "Use metric" toggle switch to select metric as maximum
- default value: maximum of metric query
2 years ago
## Installation
2 years ago
### Linux / Mac OS X
- Navigate to either:
- `<GRAFANA_PATH>/data/plugins` (when installed from tarball or source)
2 years ago
- or `/var/lib/grafana/plugins` (when installed from `.deb`/`.rpm` package)
2 years ago
- Download Chartwerk panel
2 years ago
```
wget -O corpglory-chartwerk-panel-0.5.1.zip https://code.corpglory.net/attachments/e1c563fd-10bf-4cb4-be12-be76377f3f1c
2 years ago
```
- Unpack downloaded files
2 years ago
```
4 weeks ago
unzip -u corpglory-chartwerk-panel-0.5.1.zip
2 years ago
```
- 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`
2 years ago
- For grafana installed via Package Manager:
- type in `systemctl restart grafana-server`
2 years ago
### Grafana in Docker
2 years ago
You can install Chartwerk panel to Grafana in Docker passing it as environment variable (as described in [Grafana docs](http://docs.grafana.org/installation/docker/#installing-plugins-from-other-sources))
2 years ago
```bash
docker run \
-p 3000:3000 \
-e "GF_INSTALL_PLUGINS=https://code.corpglory.net/attachments/e1c563fd-10bf-4cb4-be12-be76377f3f1c;corpglory-chartwerk-panel" \
2 years ago
grafana/grafana
```
3 weeks ago
## Demo
see [demo](https://grafana.corpglory.com/d/8vGyMypGz/demo-home?orgId=4)