Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTimezone function #4227
Comments
This comment has been minimized.
This comment has been minimized.
|
Seems to be duplicated #4160 |
allangood
closed this
Jun 5, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
allangood commentedJun 5, 2018
•
edited
Proposal
A function to return the current timezone offset value (-3, -4, +6, so on) on the Prometheus server.
I'm trying to implement something similar as posted here: https://www.robustperception.io/combining-alert-conditions/
The main idea is to be notified about non critical (warning) alerts only during work hours. Same way many others monitoring/alert systems do (Nagios, Zabbix, etc).
Using the hours() function is the closest way to archive this feature, but the lack of the timezone offset information (and mainly the daylight savings information) make it very difficult, since I need to manually change the rule every time the daylight saving begins or it ends.
Using the same example of the blog, but with the "timezoneoffset()" value this problem can be solved:
Bug Report
Accordingly to https://prometheus.io/docs/prometheus/latest/querying/functions/
There is no timezone offset information available.
What did you expect to see?
Timezone offset information
What did you see instead? Under which circumstances?
No timezone offset information
Environment
All
All
All