Skip to content
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

How do I change the time zone of prometheus, please #4613

Closed
D-PENG opened this Issue Sep 17, 2018 · 7 comments

Comments

Projects
None yet
5 participants
@D-PENG
Copy link

D-PENG commented Sep 17, 2018

Is it configured in prometheus.yml ?

@AndorCS

This comment has been minimized.

Copy link

AndorCS commented Sep 17, 2018

Prometheus always keep data in UTC timezone.

However, you can use timezone-related settings in Grafana.

@D-PENG

This comment has been minimized.

Copy link
Author

D-PENG commented Sep 17, 2018

@AndorCS The time zone of Grafana can be set, but it is inconvenient to view. It is more flexible and convenient to check on Prometheus.

@Andor

This comment has been minimized.

Copy link

Andor commented Sep 17, 2018

It is more flexible and convenient to check on Prometheus.

Check what? What exactly are you trying to do when you need timezones on Prometheus side?

@D-PENG

This comment has been minimized.

Copy link
Author

D-PENG commented Sep 17, 2018

It is more flexible and convenient to check on Prometheus.

Check what? What exactly are you trying to do when you need timezones?

For example, I want to see the data of an index, (such as ((sum by(pod_name) (rate(container_network_receive_bytes_total{pod_name="alertmanager-wechat-5b665cdbc7-bbsqx"}[1m]))) / 1024) .)
On the graph of Prometheus, I can quickly get the historical data of the index, which is very flexible.

@gouthamve

This comment has been minimized.

@D-PENG

This comment has been minimized.

Copy link
Author

D-PENG commented Sep 18, 2018

@lock

This comment has been minimized.

Copy link

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 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.
You can’t perform that action at this time.