[influxdb] Fixes issue 8798 and 8697 problems storing integer types (#8831)
* Update documentation with changed Influx2 RC port * Fix problem with non decimal numeric types Improve documentation with more explicit information about Influx types used Implement toString to InfluxPoint to allow some trace info to be useful in case it's needed Fixes #8697 Fixes #8798 Signed-off-by: Joan Pujol <joanpujol@gmail.com>
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
# InfluxDB (0.9 and newer) Persistence
|
||||
|
||||
This service allows you to persist and query states using the [InfluxDB](https://www.influxdata.com/products/influxdb-overview/) and [InfluxDB 2.0](https://v2.docs.influxdata.com/v2.0/) time series database. The persisted values can be queried from within openHAB. There also are nice tools on the web for visualizing InfluxDB time series, such as [Grafana](http://grafana.org/).
|
||||
This service allows you to persist and query states using the [InfluxDB](https://www.influxdata.com/products/influxdb-overview/) and [InfluxDB 2.0](https://v2.docs.influxdata.com/v2.0/) time series database. The persisted values can be queried from within openHAB.
|
||||
There also are nice tools on the web for visualizing InfluxDB time series, such as [Grafana](http://grafana.org/) and new Influx DB 2.0 version introduces [powerful data processing features.](https://docs.influxdata.com/influxdb/v2.0/process-data/get-started/)
|
||||
|
||||
## Database Structure
|
||||
|
||||
|
||||
- This service allows you to persist and query states using the time series database.
|
||||
- The states of an item are persisted in *measurements* points with names equal to the name of the item, or the alias, if one is provided. In both variants, a *tag* named "item" is added, containing the item name.
|
||||
All values are stored in a *field* called "value" using integers or doubles if possible,`OnOffType` and `OpenClosedType` values are stored using 0 or 1.
|
||||
- If configured extra tags for item category, label or type can be added fore each point.
|
||||
All values are stored in a *field* called "value" using the following types:
|
||||
- **float** for DecimalType and QuantityType
|
||||
- **integer** for `OnOffType` and `OpenClosedType` (values are stored using 0 or 1) and `DateTimeType` (milliseconds since 1970-01-01T00:00:00Z)
|
||||
- **string** for the rest of types
|
||||
|
||||
- If configured, extra tags for item category, label or type can be added fore each point.
|
||||
|
||||
Some example entries for an item with the name "speedtest" without any further configuration would look like this:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user