Dan Hoover
2018-01-10 03:49:16 UTC
I'm a complete and total noob to influx/grafana but I do understand SQL
pretty well. I'd just like to ask a few questions to make sure I'm on the
right track. Thanks in advance for your help (and your patience).
I have a bunch (200) of temperature sensors that all report the temp, the
setpoint, the state of the HVAC, and the sensor id. They report once per
minute.
I'm currently only saving the latest result in a SQL database. Now I'm
ready to begin adding this information to influx. I've confirmed that the
connections are working and that I can add data properly.
Here are my questions:
1. Should each sensor be its own "table" or do I just dump all the data in
one table called temperatures and let the IDs sort it out?
2. Is there any way to run a query once a month or so that automatically
averages the data over the course of an hour and stores that to keep the
size of the db reasonable? That's probably far fetched, but I thought I'd
ask.
3. Can I have something like grafana automatically detect a new sensor id
and create a gauge/chart for it, or do I have to do this manually every
time I add new sensor? I'm guessing that this could have a bearing on
question #1.
I think that's a good start. I just want to get my schema right from the
beginning. I'm sure I'll have a ton to learn, but I feel like playing with
it will be easier once I have a nice stream of data to visualize.
pretty well. I'd just like to ask a few questions to make sure I'm on the
right track. Thanks in advance for your help (and your patience).
I have a bunch (200) of temperature sensors that all report the temp, the
setpoint, the state of the HVAC, and the sensor id. They report once per
minute.
I'm currently only saving the latest result in a SQL database. Now I'm
ready to begin adding this information to influx. I've confirmed that the
connections are working and that I can add data properly.
Here are my questions:
1. Should each sensor be its own "table" or do I just dump all the data in
one table called temperatures and let the IDs sort it out?
2. Is there any way to run a query once a month or so that automatically
averages the data over the course of an hour and stores that to keep the
size of the db reasonable? That's probably far fetched, but I thought I'd
ask.
3. Can I have something like grafana automatically detect a new sensor id
and create a gauge/chart for it, or do I have to do this manually every
time I add new sensor? I'm guessing that this could have a bearing on
question #1.
I think that's a good start. I just want to get my schema right from the
beginning. I'm sure I'll have a ton to learn, but I feel like playing with
it will be easier once I have a nice stream of data to visualize.
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/cf234f7f-3703-46e0-bff5-881af1c92d9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/cf234f7f-3703-46e0-bff5-881af1c92d9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.