Skip to content

Commit

Permalink
feat(influxdb): Added new functions moving_average and difference to …
Browse files Browse the repository at this point in the history
…query editor, closes grafana#4698
  • Loading branch information
torkelo committed May 2, 2016
1 parent 1b262d3 commit e6bccc5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
* **Graphite PNG*: Fixed issue graphite png rendering option, fixes [#4864](https://github.com/grafana/grafana/issues/4864)
* **InfluxDB**: Fixed issue missing plus group by iconn, fixes [#4862](https://github.com/grafana/grafana/issues/4862)

### Enhancements
* **InfluxDB**: Added new functions moving_average and difference to query editor, closes [#4698](https://github.com/grafana/grafana/issues/4698)

# 3.0.0-beta6 (2016-04-29)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion docker/blocks/influxdb/fig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
influxdb:
image: tutum/influxdb:latest
image: tutum/influxdb:0.12
ports:
- "2004:2004"
- "8083:8083"
Expand Down
18 changes: 18 additions & 0 deletions public/app/plugins/datasource/influxdb/query_part.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,24 @@ QueryPartDef.register({
renderer: functionRenderer,
});

QueryPartDef.register({
type: 'difference',
addStrategy: addTransformationStrategy,
category: categories.Transformations,
params: [],
defaultParams: [],
renderer: functionRenderer,
});

QueryPartDef.register({
type: 'moving_average',
addStrategy: addTransformationStrategy,
category: categories.Transformations,
params: [{ name: "window", type: "number", options: [5, 10, 20, 30, 40]}],
defaultParams: [10],
renderer: functionRenderer,
});

QueryPartDef.register({
type: 'stddev',
addStrategy: addTransformationStrategy,
Expand Down

0 comments on commit e6bccc5

Please sign in to comment.