Closed garry0garry closed 3 weeks ago
Can you check the home-assistant log for clues? If a metric is unavailable it will generally log the reason there. Not sure if there is a good way to propagate errors into the UI :thinking:
Looks to me like tmax_over_time
is specific to VictoriaMetrics; https://docs.victoriametrics.com/metricsql/#tmax_over_time
What Prometheus implementation are you using?
Understood thanks. I don't have VictoriaMetrics. And I don’t know how to get the time and date of an event :-(
How to assign a unique identifier to a sensor?
Understood thanks. I don't have VictoriaMetrics. And I don’t know how to get the time and date of an event :-(
The integration is using the Query API of Prometheus, which will always return the latest value for your given expression. The time that Home Assistant records as the last update is probably the best you're going to get.
How to assign a unique identifier to a sensor?
Set the unique_id
field for a query.
The integration is using the Query API of Prometheus, which will always return the latest value for your given expression. The time that Home Assistant records as the last update is probably the best you're going to get.
I need to find the maximum value and time when the event occurred.
I would recommend taking that question to the Prometheus community.
They're on Slack, Matrix and IRC: https://prometheus.io/community/
The timestamp sensor is always
unavailable
. How to find the cause of the problem?