]> granicus.if.org Git - icinga2/commit
Add service metadata to InfluxDB Writer
authorSimon Murray <spjmurray@yahoo.co.uk>
Wed, 8 Jun 2016 10:09:21 +0000 (11:09 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 8 Jun 2016 11:23:52 +0000 (13:23 +0200)
commit2e8c8809eac35a4b401c20b9cfbe5374efbc4827
treed231345c645be4cf84cda82da5a23ee56685179d
parent899592c8ad5df6f960457d96757ae8e3339919cc
Add service metadata to InfluxDB Writer

Adds a new configuration variable in keeping with the graphite writer
which defaults to false to save network bandwidth.  All metrics currently
supported by graphite are now available to InfluxDB.  I added in some
formatting functions, to handle integers and booleans as we know and
control their types, and the supporting regexes in the sanity checker.

Updating to InfluxDB 0.13.X started giving 400 errors due to the missing
Host header in HTTP/1.1 requests.  HttpRequest has been updated to auto-
magically add the host and port to these requests if not explicitly
stated by the client code.

The exception code has been cleaned up to break out of the function
early if such a condition is raised, this avoids unnecessarily executing
code which will ultimately fail.

fixes #11912

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
doc/6-object-types.md
lib/perfdata/influxdbwriter.cpp
lib/perfdata/influxdbwriter.hpp
lib/perfdata/influxdbwriter.ti
lib/remote/httprequest.cpp