Skip to content

Add support for reporting metrics to Influx API v2 #61

@riker09

Description

@riker09

As far as I can tell setting the environment variables for configuring reporting metrics to an InfluxDB instance are only working with the older v1 API.

It would probably the easiest to support the newer v2 API by adding some new env vars:

  • INFLUXDB2_URL
  • INFLUXDB2_BUCKET
  • INFLUXDB2_ORG and/or INFLUXDB2_ORGID

I'm not sure if the data can still be written with the curl parameter --data-binary. In a quick test --data-raw did seam to to work, though.

Documentation:
https://docs.influxdata.com/influxdb/v1.8/guides/write_data/#write-data-using-the-influxdb-api
https://docs.influxdata.com/influxdb/v2.6/api/#operation/PostWrite

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions