grafana/grafana — pull request #872 by mradamczyk (2014-09-27 02:25:57+00:00)
Title: [influxdb] [ui] "Make continuous query" button

This change adds a button "Make continuous query" in influxdb editor that creates continuous query based on the given query.

Let's say we have query like this: ```SELECT B, F(A) from N group by time(T), B where $condition```
We'd like to have an almost one-click way to create and run in influx a continuous query like this:
```SELECT B, F(A) as A from N group by time(T), B into cq.N.F_A.B.T.$retentionPolicyMarker```

This code is probably not very generic.. It forces our CQ naming convention and a way we define the retention policy, but it might be a good point to start a discussion about such a feature.

PS. It's also written basing on 1.7 grafana version and then just rebased to the 1.8, so I noticed that templating the query was replaced by InfluxQueryBuilder...