-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
docker image does not recognise timezone appropriately #3810
Comments
Hi! 👋 Your timezone in
https://www.freedesktop.org/software/systemd/man/latest/localtime.html Can you try this and see if it works? |
My current approach works for the other 36+ containers I run. It works for Promtail. It doesn't work for Alertmanager, Loki, Prometheus, or Node-Exporter. I did check the state of the files in the container:
|
D'oh! I misread the original comment.
|
Here's my result:
Are you running alertmanager inside a docker image? Can you share your sanitised compose file details? Addendum: To make sure both the host and the container output the date in the same format, I used the following:
|
OK! I think I know what the issue is – I suspect the base image which the docker images for Prometheus and Alertmanager are built on do not have |
Hi! 👋 I opened an issue for this but I suspect it will be rejected. Please see the following in the FAQ https://prometheus.io/docs/introduction/faq/#can-i-change-the-timezone-why-is-everything-in-utc. |
Reading the issues, alermanger and prometheus works only in UTC exklusive. In our company, we are using Grafana to manage the Alertmanager alerts and Grafana will covert the UTC times into local time. Create and silence with local time in grafana will be forwarded in UTC at AM. |
What did you do?
My compose.yaml file looks like this:
What did you expect to see?
The time in the container to represent the timezone passed by the compose file.
What did you see instead? Under which circumstances?
Using the following commands:
The timezone is available to the container but is not being recognised.
Environment
System information:
Linux 6.1.0-18-amd64 x86_64
Alertmanager version:
Prometheus configuration file:
n/a
Logs:
The text was updated successfully, but these errors were encountered: