-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update InfluxDB PersistenceService to 0.9 once the Java API is published #2748
Comments
The InfluxDB 0.9 java api is not yet released: influxdata/influxdb-java#24 (comment) |
I've changed the title of this issue. We could leave it open as reference. It would be great if you all could have an eye on the Java API developments. Thanks, Thomas E.-E. |
As far as I can see the the InfluxDB 0.9 java api was released. Hope you can jump right in 😄 |
Thanks for the hint. I'll give it a try this weekend. Unfortunately the api is not compatible with influxdb <0.9. |
I started diving into influxdb 0.9. |
influxdb-java 2.0 is still not released: influxdata/influxdb-java#37 . I think the new binding won't make it into 1.7.1 :-(( |
@theoweiss |
@m4ci3k2 the code is quite unfinished, good to know that it works so far. |
I've just uploaded a first version of the influxdb1 persistence service to my bintray repo. You can download it from this url: The service is name influxdb1. Therefore use these settings in openhab.cfg: and influxdb1.persist for the persistence configuration file. I appreciate your feedback. Thanks, |
I'll test it and let you know around Thursday afternoon. |
@m4ci3k2 thanks, that's great. Can you also check if restoring of values works as expected. |
Tested for several days. Look like to work well !!
|
Influxdb-java 2.0 is out. Read @rossmcdonald last comment influxdata/influxdb-java#37 |
Just in time �👍 |
I've uploaded a newer version of the jar, which should fix HSBType handling and adds support for PointType. It is available from here: |
Hi Jan, unfortunately I don't know how the charting works. Could first have a look into the database and check if the values are stored correctly in the db? Regards, |
Yes, they are. Storing values works perfectly. And when I look at the same chart but for the whole week, it is perfectly smooth. |
May be we can get some insights having a trace log. Could you enable trace logging for influxdb by adding this line to your logbook.xml and post the log output?
|
OK, here you go...
|
It seems like this query gets the oldest entry of the measurement instead of the newest descending from 1446622086s :
Which version of influxdb are you using? My 0.9.4.1 influxdb does not return any values for a similar query, but it should :-((. I think we have to wait for influxdb 0.9.5 with tsm1 and hope they fixed this issue. |
@theoweiss Yes, the incorrect ordering is a known issue, and will be resolved with InfluxDB 0.9.5. It's also fixed in the nightlies when using |
@rossmcdonald sounds good, thanks. |
small issue related to the current influxdb-java implementation: in the latest release, the integer type is not supported, I made a small fix to support that: influxdata/influxdb-java#115 Otherwise all Integer types will be added as floats (and you cannot import integer values from your old influxdb without patching the insert statements) |
Hi Simon, I've seen your java-influxdb PR has been merged 👍. Hopefully we soon get a new release of influxdb-java. Regards, |
Yes, it happens if you already have data in your database or want to import them later on. The problem is that influxdb "guesses" the datatype by the first value that is written to the database. In influxdb0.8 we used integer types which is sufficient for a lot of openhab types. In Influxdb 0.9.3 they changed the wire format a little bit which leads to the problem that every value type is added as float type. So we now have a data type mismatch. My change allows us to use integer types again by enabling the feature by "useInteger(true)". The importer documentation is quiet good, I think it is enough to reference it: https://github.com/influxdb/influxdb/blob/master/importer/README.md But I guess we need at least this fix otherwise it will likely fail on a lot of data measurements. |
I already asked the influxdb people when we could expect a patch release. |
Hi, I have upgraded to InfluxDB 0.9.5 and was looking forward to see that the "ORDER BY DESC" bug was fixed. But now the query |
I just gave the influxdb1 addon by @theoweiss a try against InfluxDB 0.9.6.1. While I got data into InfluxDB using this plugin Looking at the traces I see the following
Trying the query string directly in
Looking at
Should the check in |
Hi @vsaw, could you please post your item configuration for "All". Regards, |
Hi @theoweiss it's like
I removed additional rooms and items from this to not swamp you. However the original grouping structure is the same as in my full |
'ALL' is a keyword in InfluxDB, can you try renaming your group? |
@pravussum Yep that's it! Looking at #2748 (comment) I noticed I'm using
Using |
Now that openHAB 1.8 has official support for InfluxDB 0.9 can this be closed? I'm using openHAB 1.8 and InfluxDB v0.9 for a couple of days now and it all seems to working as expected (except for the "All" keyword error) |
agreed! |
Hello,
InfluxDB 0.9 Is released,
I can't achieve to make it work with openhab 1.7.0
2015-06-17 15:23:01.970 [ERROR] [i.i.InfluxDBPersistenceService] - database connection failed throwing an exception
2015-06-17 15:23:02.000 [ERROR] [i.i.InfluxDBPersistenceService] - database error: null
2015-06-17 15:23:02.028 [ERROR] [i.i.InfluxDBPersistenceService] - database connection does not work for now, will retry to use the database.
Relating to issue #2420, Is there any plan having 0.9 working ?
The text was updated successfully, but these errors were encountered: