forked from influxdata/community-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-data.yml
32 lines (28 loc) · 951 Bytes
/
sample-data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
apiVersion: influxdata.com/v2alpha1
kind: Task
metadata:
name: fetch-sample-data
spec:
every: 5m
name: Fetch Sample Data
query: |-
import "experimental/csv"
csv.from(url: "https://influx-testdata.s3.amazonaws.com/bitcoin-historical-annotated.csv")
|> to(bucket: "sample_data")
csv.from(url: "https://influx-testdata.s3.amazonaws.com/usgs-earthquake-all-week-annotated.csv")
|> to(bucket: "sample_data")
csv.from(url: "https://influx-testdata.s3.amazonaws.com/noaa-ndbc-latest-observations-annotated.csv")
|> to(bucket: "sample_data")
csv.from(url: "https://influx-testdata.s3.amazonaws.com/air-sensor-data-annotated.csv")
|> to(bucket: "sample_data")
status: active
---
apiVersion: influxdata.com/v2alpha1
kind: Bucket
metadata:
name: sample-data-bucket
spec:
name: sample_data
retentionRules:
- everySeconds: 604800
type: expire