square / metrics

Metrics Query Engine
Apache License 2.0
170 stars 21 forks source link

Add scalar arithmetic #259

Closed Nathan-Fenner closed 8 years ago

Nathan-Fenner commented 8 years ago

Now you can do (for example):

select
cpu.percent | transform.moving_average(2d * 4)

TODO: tests

Note: this isn't very useful by itself, but there are some ideas that may be interesting to try in the future for more complicated queries that involve calculating summary values from metrics.