Skip to content

InfluxDB v2 support

Compare
Choose a tag to compare
@jszobody jszobody released this 04 Oct 22:23
· 6 commits to master since this release
4e5b02d
Add influx db 2 support (#17)

* Added influxdata/influxdb-client-php and deps

* Moved InfluxDB::getNanosecondTimestamp to trait

* Added InfluxDB2 support

* Fixed env variable name

* Added MetricsManager::createInfluxdb2Driver

* Removed unused namespaces

* Fix createInfluxDB2Driver

* Fix namespace

* Add default write precision

* Add InfluxDB2 to provides list

* Add default value for $points

* Removed configurability of WritePrecision

* Add InfluxDB adapters

* Convert InfluxDB driver to use adapter

* Remove InfluxDB2 driver

* Add IDB_VERSION env variable

* Create adapters inside Service Provider

* Force legacy tests to use Version 1 adapter

* Changed tests to match adapter pattern

* Remove AbstractInfluxDBAdapter::__construct

* Change default signature for writePoints

* Fix ternary if statement

* Call write points on adapter

* Construct with UDP flag when necessary

* Add missing configuration values

* Set org default to empty string

* Set InfluxDB Adapter V1 as default

* Updated README

* README pass 2

* fix typed point

---------

Co-authored-by: David Frailey <endl@pop-os.localdomain>
Co-authored-by: Joseph Szobody <joseph@stechstudio.com>