From 121da3e4c49d5c80f87319687d7d2ded3a9bae10 Mon Sep 17 00:00:00 2001 From: Arnav Aggarwal Date: Tue, 16 Feb 2021 10:11:13 -0800 Subject: [PATCH] chore: embedded time to flux query --- influxdb2_operational_monitoring/influxdb2_cardinality_now.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influxdb2_operational_monitoring/influxdb2_cardinality_now.yml b/influxdb2_operational_monitoring/influxdb2_cardinality_now.yml index 43504ef..bb02e07 100644 --- a/influxdb2_operational_monitoring/influxdb2_cardinality_now.yml +++ b/influxdb2_operational_monitoring/influxdb2_cardinality_now.yml @@ -44,7 +44,7 @@ spec: buckets() |> map(fn: (r) => { - cards = influxdb.cardinality(start: -1h, bucket: r.name) + cards = influxdb.cardinality(start: -task.every, bucket: r.name) |> findRecord(idx: 0, fn: (key) => (true)) result = alert(bucketCard: cards._value, bucketName: r.name)