Update the default starting script for editor

Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
pull/10616/head
Delmer Reed 2018-06-12 13:33:35 -07:00
parent 3f899048d6
commit d0c0a3be42
1 changed files with 1 additions and 1 deletions

View File

@ -60,4 +60,4 @@ export const EXCLUDED_KEYS = [
]
export const DEFAULT_SCRIPT =
'fil = (r) => r._measurement == "cpu"\ntele = from(db: "telegraf") \n\t\t|> filter(fn: fil)\n |> range(start: -1m)\n |> sum()\n\n'
'from(db: "pick a db")\n\t|> filter(fn: (r) => r._measurement == "your value here")\n\t|> range(start: -1m)\n\t|> yield(name: "Results")\n\n'