Skip to content

fphammerle/ansible-role-influxdb-v2-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Ansible Role: InfluxDB v2 Task

Ansible role creating/updating tasks in InfluxDB v2.

Required Input Variables

influxdb_v2_task_url: http://localhost:8086
influxdb_v2_task_url_username: admin
influxdb_v2_task_url_password: admin-password
influxdb_v2_task_org: someorg
influxdb_v2_task_name: sometask
influxdb_v2_task_every: 5m
influxdb_v2_task_flux: |
  from(bucket: "source")
      |> filter(fn: (r) => r["_field"] == "somefield")
      |> to(host: "http://localhost:8086", org: "otherorg", token: "secret", bucket: "targetbucket")

Optional Input Variables

influxdb_v2_task_flux_imports: [regexp, strings]

Rationale

Ansible's influxdb_* modules do not support InfluxDB v2 as they are based on https://github.com/influxdata/influxdb-python:

Note: This library is for use with InfluxDB 1.x. For connecting to InfluxDB 2.x instances, please use the the influxdb-client-python client.

About

Ansible Role Creating & Updating Tasks in InfluxDB v2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published