-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InfluxDB: Use single measurement for points #417
Comments
@michis0806 I'm typically (and I'm by far no expert) doing only a single measurement and single field. Everything else should be tags. I.e.
Not sure if more fields provide an advantage, but they should be- as suggested- part of a single measurement. |
/cc @Stefan-Code as original author |
@andig my problem is, that I cannot calculate measurements like the current "Gesamtverbrauch" or "Eigenverbrauch" if it's stored in separate points. But I could use |
Of course. You can only add if timestamps match. In influx 2 that is done using the ˋaggregateWindowˋ function. |
with #426 we get pretty close already. it should be possible to implement this in the InfluxDB api by just grouping entries with identical timestamps. but this becomes a pretty hard problem when the values are from different meters, |
just as comment, without deeper knowledge of the details: complex operations should not be done at the vzlogger. it will end up in a configuration jungle. A similar, and might be easier example: weather sensor with |
@antonmeyer: when only grouping on identical timestamps, (and with the feature you requested being implemented), |
Ich antworte mal auf Deutsch: wenn die Idee ist, vzlogger als Universal-Werkzeug zu nutzen, ok, dann sollte man kein feature stoppen. Ich hatte den Eindruck, dass vzlogger eine Art Brücke zwischen Sensor und Datenbank / middle ware sein soll. Also am Besten stateless. Komplexere Operationen wie Aggregation sollte in der Middleware stattfinden. Ist ja eher eine schwäche der influxdb, wenn sie die Zusammenfassung von mehreren Messreihen nicht erlaubt. Wobei ich denke, dass es geht. Wird nur etwas aufwändiger und kann man nicht mit dem Query Builder zusammen-klicken. |
Hi,
I'm using vzlogger to read the SML measurements from my two ehz counters and write them to a influxdb. I am measuring the feed, delivery and solar production values. currently the values are written to individual points in one measurements identified by a tag. So I get something like
time, value, tag=zaehler
1582714567874000000 24119140 feed
1582714567874000000 66835655.7 delivery
1582714565507000000 80804793.1 solar
unfortunately, influxdb is not capable of doing calculations based on different measurement-points (or I didn't get how to do it).
So my proposal would be, if possible, to be able to combine my three points to one and insert something like this in influxdb:
time, feed, delivery, solar
1582714567874000000, 24119140, 66835655.7, 80804793.1
I hope that I have formulated this understandably ;)
Thanks
Michael
The text was updated successfully, but these errors were encountered: