-
Notifications
You must be signed in to change notification settings - Fork 761
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
Monthly Statistics do not show the right numbers #1074
Comments
This looks indeed very strange. I checked some of my months, all are correct. Don't know, how to pin that down without having the database at hand. (I assume, you did not change the display time in the upper right or the timezone...) |
How did you set the time zone to Europe/Madrid? Switching between Europe/Madrid and Etc/UTC does not change anything for me in respect to drives... |
I didn't set it or I don't remember setting it. It is in Europe/Madrid by default. I think Grafana takes it from the server: % ls -l /etc/localtime But teslamate is in UTC format: % docker exec -it teslamate_teslamate_1 date Localtime is UTC+1: % date So, I'm seeing two problems:
|
Could you please also check date in the grafana and the database container? Which PostgreSQL version are you using? |
Here you have it: Grafana: % docker exec -it teslamate_grafana_1 date Database: % docker exec -it teslamate_database_1 date My machine date: % date -u PostgreSQL version: 12.4 |
Looks ok, todo bien. I assume, you did not set TZ or PGTZ in your docker-compose.yml or .env there. What gives (Still wondering, where that Europe/Madrid is coming from...) Anyway, could you import the attached dashboard and have a look at it? Statistics.zip |
I was about to open a separate report for the Statistics view, but I think my issue is the same as reported here. Here's what I say (two different examples). Example 1: Note how "October 2020" is completely missing, but also data is reported for "August", but the car wasn't tracked in Teslamate until September Changing the period to "Week" confirms that there is data for October, and that the earliest data is for September Notice, that the total number of drives tallies across the two views, so the data has obviously gone into the wrong month in month view. Changing timezone to Example 2: Swapping to UTC correctly shows one entry for each month: My timezone in Grafana is set to "Default", so assume that Europe/London is being grabbed from my browser / OS (I am in the UK, so the choice of Europe/London is correct). |
Describe the bug
Statistics dashboard does not show the right numbers in Monthly view. The sum of the daily data of a month does not correspond to the total value shown.
Expected behavior
The Statistics monthly view must show the sum of the daily data of each month.
How to reproduce it (as minimally and precisely as possible):
Steps to reproduce the behavior:
Environment
The text was updated successfully, but these errors were encountered: