project Utilities / Python Influxdb Downsample avatar

utilities/python_influxdb_downsample#2: Allow multiple measurements to be specified



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: vnext
Created: 04-Feb-23 16:29



Description

Currently, we only accept a single measurement, however I've got various flux tasks which provide multiple:

sourcedata = from(bucket: "telegraf/autogen", host: host, token: token)
    |> range(start: -task.every)
    |> filter(fn: (r) => r._measurement == "data_quota"
       or r._measurement == "http_response"
       or r._measurement == "i2pd"
       or r._measurement == "nextcloud_quotas"
       or r._measurement == "pihole_stats"
       or r._measurement == "internet_speed"
    )
    |> filter(fn: (r) => r._field != "result_type" and r._field != "status")
    |> aggregateWindow(every: 15m, fn: mean)

It'd be good if it were possible to provide a list



Toggle State Changes

Activity


assigned to @btasker

changed title from Allow multiple measurments to be specified to Allow multiple measur{+e+}ments to be specified

verified

mentioned in commit 7928e6aa42c74290c5e55afb0662d6da8109906b

Commit: 7928e6aa42c74290c5e55afb0662d6da8109906b 
Author: B Tasker                            
                            
Date: 2023-02-05T12:53:05.000+00:00 

Message

docs: update README with examples of using multi-measurment support for utilities/python_influxdb_downsample#2

+42 -0 (42 lines changed)
verified

mentioned in commit b91adfe587de64f37d9a5d675c8adad79608babe

Commit: b91adfe587de64f37d9a5d675c8adad79608babe 
Author: B Tasker                            
                            
Date: 2023-02-05T12:49:31.000+00:00 

Message

Allow multiple measurements to be included utilities/python_influxdb_downsample#2

+40 -2 (42 lines changed)