chaperon v0.3.1 Chaperon.Export.InfluxDB View Source
InfluxDB metric export module.
Link to this section Summary
Functions
Returns a supervisable connection child_spec.
Returns the connection configuration.
Sends metrics of given session
to InfluxDB in LoadTestMeasurement
format.
Executes a query.
Pings a server.
Executes a reading query.
Checks the status of a connection.
Determines the version of an InfluxDB host.
Executes a writing query.
Link to this section Functions
Returns a supervisable connection child_spec.
Callback implementation for Instream.Connection.child_spec/1
.
Returns the connection configuration.
Callback implementation for Instream.Connection.config/1
.
Sends metrics of given session
to InfluxDB in LoadTestMeasurement
format.
Executes a query.
Passing [async: true]
in the options always returns :ok.
The command will be executed asynchronously.
Callback implementation for Instream.Connection.execute/2
.
Pings a server.
By default the first server in your connection configuration will be pinged.
The server passed does not necessarily need to belong to your connection. Only the connection details (scheme, port, ...) will be used to determine the exact url to send the ping request to.
Callback implementation for Instream.Connection.ping/2
.
Executes a reading query.
Options:
method
: whether to use a "GET" or "POST" request (as atom)precision
: seeInstream.Encoder.Precision
for available values
See Instream.Connection.execute/2
for additional generic options.
Callback implementation for Instream.Connection.query/2
.
Checks the status of a connection.
Callback implementation for Instream.Connection.status/1
.
Determines the version of an InfluxDB host.
The version will be retrieved using a :ping
query and extract the returned
X-Influxdb-Version
header. If the header is missing the version will be
returned as "unknown"
.
Callback implementation for Instream.Connection.version/2
.
Executes a writing query.
See Instream.Connection.execute/2
for additional generic options.
Callback implementation for Instream.Connection.write/2
.