influx write dryrun

  • influx CLI 2.0.0+
  • InfluxDB 2.0.0+

Authentication credentials

Dry run writing line protocol via stdin
  1. influx write --bucket example-bucket "
  2. m,host=host1 field1=1.2
  3. m,host=host2 field1=2.4
  4. m,host=host1 field2=5i
  5. m,host=host2 field2=3i
  6. "
Dry run writing line protocol from a file
  1. influx write dryrun \
  2. --bucket example-bucket \
  3. --file path/to/line-protocol.txt
Dry run writing line protocol from multiple files
  1. influx write dryrun \
  2. --file path/to/line-protocol-1.txt \
  3. --file path/to/line-protocol-2.txt
Dry run writing line protocol from a URL
Dry run writing line protocol from multiple URLs
  1. influx write dryrun \
  2. --bucket example-bucket \
  3. --url https://example.com/line-protocol-1.txt \
  4. --url https://example.com/line-protocol-2.txt
Dry run writing line protocol from multiple sources
  1. influx write dryrun \
  2. --bucket example-bucket \
  3. --file path/to/line-protocol-1.txt \

CSV

Dry run writing annotated CSV data via stdin
  1. influx write dryrun \
  2. --bucket example-bucket \
  3. --format csv \
  4. "#datatype measurement,tag,tag,field,field,ignored,time
  5. m,cpu,host,time_steal,usage_user,nothing,time
  6. cpu,cpu1,host1,0,2.7,a,1482669077000000000
  7. cpu,cpu1,host2,0,2.2,b,1482669087000000000
  8. "
Dry run writing annotated CSV data from a file
Dry run writing annotated CSV data from multiple files
  1. influx write dryrun \
  2. --bucket example-bucket \
  3. --file path/to/data-1.csv \
  4. --file path/to/data-2.csv
Dry run writing annotated CSV data from a URL
  1. influx write dryrun \
  2. --bucket example-bucket \
  3. --url https://example.com/data.csv
Dry run writing annotated CSV data from multiple URLs
  1. influx write dryrun \
  2. --bucket example-bucket \
  3. --url https://example.com/data-1.csv \
  4. --url https://example.com/data-2.csv
Dry run writing annotated CSV data from multiple sources
Dry run prepending CSV data with annotation headers
  1. influx write dryrun \
  2. --bucket example-bucket \
  3. --header "#constant measurement,birds" \
  4. --file path/to/data.csv