graphite-project / graphite-web

A highly scalable real-time graphing system
http://graphite.readthedocs.org/
Apache License 2.0
5.9k stars 1.26k forks source link

I'm having the same issue, but in my case I don't want to use alignToFrom (cause I want to specify a relative time, like from=-10d, instead of having to specify absolute time), yet I'd like to have Summarize to allign the date correctly to 00:00 and honor the time zone. I currently get +3 hours shift (as my timezone UTC+3) and summarize is aligned to 03:00. #2663

Closed zzzzzzzzlllllllll closed 3 years ago

zzzzzzzzlllllllll commented 3 years ago

I'm having the same issue, but in my case I don't want to use alignToFrom (cause I want to specify a relative time, like from=-10d, instead of having to specify absolute time), yet I'd like to have Summarize to allign the date correctly to 00:00 and honor the time zone. I currently get +3 hours shift (as my timezone UTC+3) and summarize is aligned to 03:00.

Any workaround ?

Originally posted by @zerthimon in https://github.com/graphite-project/graphite-web/issues/1207#issuecomment-125234039

deniszh commented 3 years ago

According to documentation "The alignToFrom boolean parameter has been replaced by alignTo and no longer has any effect. Alignment can be to years, months, weeks, days, hours, and minutes." So, smartSummarize(seriesList, intervalString, func='sum', alignTo='day') should work fine with timezones.

zzzzzzzzlllllllll commented 3 years ago

alignTo did solve part of my problem 。

When my intervalstring is minute level, Max and min in the aggregate result are not accurate. Causes my Y-axis interval to be abnormal

zzzzzzzzlllllllll commented 3 years ago

alignTo did solve part of my problem 。

When my intervalstring is minute level, Max and min in the aggregate result are not accurate. Causes my Y-axis interval to be abnormal

intervalString = 1m alignTo = day

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.