The Xentara InfluxDB Client v1.2.1
User Manual
|
WriteRequest is a type of Xentara element. WriteRequest is a child element of the Client instance and can have one or more instances. Client sets the target in which the WriteRequests will sent the data and each WriteRequest assigned the RecordGroups where the set of measurements is defined. This set shares the same configurations for tags, fields, and batch size. WriteRequest can establish connection with http or https Server and ensures that each measurement and the other Influxdb elements will have the proper format to be sent into the Influxdb server.
Every time the task sent is called , WriteRequest reads the values from the datapoints and appends the values into the buffer.
The batch size is defined by requests and loops and determines when the WriteRequest is ready to send the data from the buffer.
The records are sent when each of those counters reaches first.
For example :
According to InfluxDB manual the optimal batch size is 5000 records per request. By Default Xentara Influxdb plugin uses 5000 records and 1 loop.
Record Groups containing a list of record of the measurements, an optional list of tags and a list with the fields to be sent on the target.
The list of measurements contains the records of the measurements that will be sent by any WriteRequest. Each measurement record is defined from a unique string value paired with the primary key of the corresponding datapoint.
A measurement record describes the set of data which is sent to the target deriving from a single datapoint. A measurement record consists of tags, fields and a timestamp. The timestamp has accuracy of a nanosecond precision and it is added by default on the measurement record. The time on the timestamp indicates the time when the value was read from the datapoint.
Tags are optional InfluxDB data structure elements used for storing commonly queried metadata. The Xentara InfluxDB Client assigns attributes as tags in the InfluxDB server in each measurement record. As name tag can be defined a unique string value paired with the value of the primary key of a datapoint. By default, Xentara InfluxDB, creates a tag named “host” which is reserved the string value of the name of the host computer of the client.
Field values are the actual measurements, and they can be type of strings, floats, integers, or booleans. The Xentara InfluxDB Client assigns attributes as fields in the InfluxDB server in each measurement record. As name field can be defined a unique string value paired with the value of the primary key of a datapoint.
Xentara InfluxDB Client uses techniques to optimise the data transmission from the InfluxDB client to the InfluxDB server.
These techniques not only increases the transmission speed but also reduces the data traffic on the network.
sent | Reads the datapointers and sends the data. |