Support for InfluxDB V2 API (#15861)

* Addition of influxdb-client-php to Composer.

* Addtion of InfluxDBv2 support.

* Addition of front-end options.

* Addition of documentation.

* Addition of the acknowledgement of the PHP library used.

* Fixed a unneeded bracket.

* Addition of a basic datastore test.

* StyleCI fixes.

* StyleCI fixes.

* StyleCI fixes.

* Fixed exception class.

* Revert accidental change.

* Fix to composer lock to not update all packages.

* Fix to composer lock to not update all packages, but still include the new Influx lib.

* Another attempt at getting Composer to behave the way I think it should work.

* Fixed merge-conflict in Composer due to #15869.

* Update composer.json

* Update composer.lock

* Update composer.json

* Update composer.lock

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
Walkablenormal
2024-03-07 19:26:21 +01:00
committed by GitHub
parent 4975a984b6
commit c855d6c2fe
15 changed files with 853 additions and 73 deletions

View File

@@ -34,6 +34,7 @@ class DevicePoll extends LnmsCommand
if ($this->option('no-data')) {
Config::set('rrd.enable', false);
Config::set('influxdb.enable', false);
Config::set('influxdbv2.enable', false);
Config::set('prometheus.enable', false);
Config::set('graphite.enable', false);
}

View File

@@ -36,6 +36,7 @@ class DatastoreServiceProvider extends ServiceProvider
protected $stores = [
'LibreNMS\Data\Store\Graphite',
'LibreNMS\Data\Store\InfluxDB',
'LibreNMS\Data\Store\InfluxDBv2',
'LibreNMS\Data\Store\OpenTSDB',
'LibreNMS\Data\Store\Prometheus',
'LibreNMS\Data\Store\Rrd',