Skip to content

Instantly share code, notes, and snippets.

@SimonRichardson
Last active November 8, 2022 11:03
Show Gist options
  • Save SimonRichardson/57dcfa608f65ba794eae9c35772191f3 to your computer and use it in GitHub Desktop.
Save SimonRichardson/57dcfa608f65ba794eae9c35772191f3 to your computer and use it in GitHub Desktop.
apiVersion: influxdata.com/v2alpha1
kind: Task
metadata:
name: condescending-carver-6e41231
spec:
every: 2m
name: test
offset: 1m0s
query: |-
import "system"
import "sampledata"
option task = { name: "test", every: 2m, offset: 1m}
data =
sampledata.int()
|> yield(name: "unmodified")
offset = 5m
step = 20s
data
|> range(start: -task.every)
status: active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment