Skip to content

Commit

Permalink
Merge pull request #45 from chartwerk/ticks-time-interval-limit-#44
Browse files Browse the repository at this point in the history
Ticks time interval limit #44
  • Loading branch information
jonyrock authored Jun 18, 2020
2 parents 6abe1cc + 6e468b8 commit 2b45388
Show file tree
Hide file tree
Showing 11 changed files with 138 additions and 315 deletions.
24 changes: 12 additions & 12 deletions dist/README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
# Grafana Chartwerk Panel
# Grafana Chartwerk Panel (beta)

![image](https://user-images.githubusercontent.com/47055832/80608867-1b5f6c80-8a40-11ea-85c5-c9676a58b77a.png)
<p align="center"><img src="https://user-images.githubusercontent.com/66464000/84520316-6c6fab00-ace4-11ea-9bfc-29ca73e5105e.png" width="150" height="150" /></div>

**Grafana Chartwerk Panel** renders metrics using ChartWerk libraries. For now, it can render as a line and a series of bars. We are working on adding new visualizations.

![image](https://user-images.githubusercontent.com/66464000/84491085-10416280-acb5-11ea-8af0-2761ed97aecc.png)
![image](https://user-images.githubusercontent.com/66464000/84491069-0b7cae80-acb5-11ea-959b-ef67835c8055.png)

## Features

- 2 types of visualizations:
- line-chart
- bar-chart
- ability to make panel's time range independent of dashboard's.
- ability to make panel's time range independent of dashboard's (doesn't work in Grafana 7).
- ability to display template variables inside the panel.
- "Charge" mode: green color for positive graph's slope, red color for negative graph's slope.
- confidence interval.
- confidence interval (for line).
- customizable X-axis labels.
- customizable grid interval.

![image](https://user-images.githubusercontent.com/66464000/84491069-0b7cae80-acb5-11ea-959b-ef67835c8055.png)
![image](https://user-images.githubusercontent.com/66464000/84491085-10416280-acb5-11ea-8af0-2761ed97aecc.png)

## Installation
## On Linux
### 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 https://github.com/chartwerk/grafana-chartwerk-panel/archive/master.zip
wget https://github.com/chartwerk/grafana-chartwerk-panel/archive/0.1.1.zip
```

- Unpack downloaded files
```
unzip grafana-chartwerk-panel-master.zip
unzip 0.1.1.zip
```

- Restart grafana-server
Expand All @@ -43,12 +43,12 @@ unzip grafana-chartwerk-panel-master.zip
- For grafana installed via Package Manager:
- type in ```systemctl restart grafana-server```

## Grafana in Docker
### Grafana in Docker
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))

```bash
docker run \
-p 3000:3000 \
-e "GF_INSTALL_PLUGINS=https://github.com/chartwerk/grafana-chartwerk-panel/archive/master.zip;corpglory-chartwerk-panel" \
-e "GF_INSTALL_PLUGINS=https://github.com/chartwerk/grafana-chartwerk-panel/archive/0.1.1.zip;corpglory-chartwerk-panel" \
grafana/grafana
```
2 changes: 1 addition & 1 deletion dist/css/panel.dark.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/panel.light.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 5 additions & 19 deletions dist/module.js

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions dist/partials/tab_axes.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,18 @@
</div>

<div class="gf-form">
<label class="gf-form-label query-keyword width-12"> Time interval (minutes) </label>
<label class="gf-form-label query-keyword width-12"> Time interval </label>
<input
type="number"
class="gf-form-input width-12"
class="gf-form-input width-4"
ng-model="ctrl.timeInterval"
ng-blur="ctrl.onConfigChange()"
ng-max="60"
>
<div class="gf-form-select-wrapper width-8 timeformat-selector">
<select class="gf-form-input"
ng-model="ctrl.timeFormat"
ng-options="format for format in ctrl.timeFormats"
ng-change="ctrl.onConfigChange()"
/>
</div>
</div>
2 changes: 1 addition & 1 deletion dist/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"path": "assets/screenshots/main.png"
}],
"version": "0.1.1",
"updated": "2020-06-12"
"updated": "2020-06-18"
},
"dependencies": {
"grafanaVersion": "6.6.1+",
Expand Down
Loading

0 comments on commit 2b45388

Please sign in to comment.