From 82eb9099a6350e98c1b4031c762f59183c63857a Mon Sep 17 00:00:00 2001 From: Russ Savage Date: Thu, 2 May 2019 08:56:50 -0700 Subject: [PATCH] remove telegraf bucket name from getting started with flux template (#13753) * remove telegraf bucket name --- CHANGELOG.md | 3 +++ ui/src/templates/constants/defaultTemplates.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a563f9db253..4d1cea5be4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ ## v2.0.0-alpha.10 [unreleased] ### Features + ### Bug Fixes +1. [13753](https://github.com/influxdata/influxdb/pull/13753): Removed hardcoded bucket for Getting Started with Flux dashboard + ### UI Improvements ## v2.0.0-alpha.9 [2019-05-01] diff --git a/ui/src/templates/constants/defaultTemplates.ts b/ui/src/templates/constants/defaultTemplates.ts index f214c189d8c..a4ed98708fd 100644 --- a/ui/src/templates/constants/defaultTemplates.ts +++ b/ui/src/templates/constants/defaultTemplates.ts @@ -2739,7 +2739,7 @@ export const gettingStartedWithFluxTemplate = () => ({ editMode: 'advanced', name: '', text: - 'from(bucket: "telegraf")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r._measurement == "cpu")\n |> filter(fn: (r) => r._field == "usage_user")\n |> filter(fn: (r) => r.cpu == "cpu-total")', + 'from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r._measurement == "cpu")\n |> filter(fn: (r) => r._field == "usage_user")\n |> filter(fn: (r) => r.cpu == "cpu-total")', }, ], shape: 'chronograf-v2',