Add metrics for amount of rain in last hour and today.#72
Conversation
|
Hi @chr-fritz , thanks for your contribution. I had left out these metrics on purpose when I added the rain metric, because it seemed like they would just be duplicated aggregations that should be possible to re-create using the rain metric and PromQL. Have you tried that before creating the PR? If yes, can you show a bit of the details? |
|
Hi @xperimental, sorry for the delayed answer. I don't tested the recreation from the current measurement, as it seams that the I run the version from the PR the whole week and and looked into the data right now. What i found was one day (last monday) which is interesting: When I look to these diagramms (the legend is the executed query), I would say that the most usable metric is the sum of today. It will be resetted to zero at midnight and allows to recalculate the current amount. The hour metric is a rolling sum about the last hour. Additionally, the diagramms show also the low resolution of the I updated the PR, to just add the sum of rain today, but not the sum of the last hour. |
8b35a6b to
fa7549c
Compare

This PR adds two additional counter metrics for the amount of rain in the last hour and today.