Skip to content

Commit

Permalink
Release v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak committed Feb 9, 2018
1 parent 5cc1f5e commit 724ffb1
Show file tree
Hide file tree
Showing 13 changed files with 100 additions and 25 deletions.
11 changes: 11 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@ Example, JSON posted on [the Hawkular's REST API](http://www.hawkular.org/hawkul

In the case of Hawkular Alerts events, you need to provide the trigger ID (several comma-separated IDs are allowed).

### Legend

Metric names can be customized in chart legend. The `Legend` field can receive regular expressions in that purpose. Regex must be written between double curly braces, and include a parentheses group to point to what must be written: `{{(.*)}}`

_Example:_
> From metric name `pod/c6e2a9ab-8d1c-11e7-b7be-06415eb17bbf/custom/haproxy_server_bytes_in_total{namespace=my-namespace,pod=web-45-6f464,route=web,server=10.1.10.138:8080,service=web}`
>
> Legend: `HAProxy Server Bytes In {{namespace=([^,}]+)}} / {{pod=([^,}]+)}}`
>
> Result: `HAProxy Server Bytes In my-namespace / web-45-6f464`
## Installing from sources

Additional information on installing from sources can be found on [hawkular.org](http://www.hawkular.org/hawkular-clients/grafana/docs/quickstart-guide/).
Expand Down
9 changes: 9 additions & 0 deletions dist/partials/query.editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,13 @@
</div>
</div>
</div>
<!-- chart panel -->
<div ng-if="ctrl.panel.type !== 'singlestat'">
<div class="gf-form-inline">
<div class="gf-form">
<label class="gf-form-label query-keyword fix-query-keyword">Legend</label>
<input type="text" class="gf-form-input" ng-model="ctrl.target.legend" ng-change="ctrl.onChangeInternal()" placeholder="default">
</div>
</div>
</div>
</query-editor-row>
4 changes: 2 additions & 2 deletions dist/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"url": "https://github.com/hawkular/hawkular-grafana-datasource"
}
],
"version": "1.1.1",
"updated": "2017-11-14"
"version": "1.1.2",
"updated": "2018-02-09"
},
"dependencies": {
"grafanaVersion": "3.x.x",
Expand Down
32 changes: 25 additions & 7 deletions dist/queryProcessor.js

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

2 changes: 1 addition & 1 deletion dist/queryProcessor.js.map

Large diffs are not rendered by default.

32 changes: 25 additions & 7 deletions dist/test/queryProcessor.js

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

2 changes: 1 addition & 1 deletion dist/test/queryProcessor.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/test/spec/datasource-downsamples_spec.js

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

2 changes: 1 addition & 1 deletion dist/test/spec/datasource-downsamples_spec.js.map

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions dist/test/spec/datasource_spec.js

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

2 changes: 1 addition & 1 deletion dist/test/spec/datasource_spec.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawkular-grafana-datasource",
"version": "1.1.1",
"version": "1.1.2",
"description": "Hawkular Datasource for Grafana",
"homepage": "https://github.com/hawkular/hawkular-grafana-datasource",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"url": "https://github.com/hawkular/hawkular-grafana-datasource"
}
],
"version": "1.1.1",
"updated": "2017-11-14"
"version": "1.1.2",
"updated": "2018-02-09"
},
"dependencies": {
"grafanaVersion": "3.x.x",
Expand Down

0 comments on commit 724ffb1

Please sign in to comment.