oracledb_exporter icon indicating copy to clipboard operation
oracledb_exporter copied to clipboard

Timezone doesn't work with 0.5.1

Open Acsigen opened this issue 1 year ago • 2 comments

I'm submitting a ...

  • [x] bug report
  • [ ] feature request

What is the current behavior?

When configuring TZ environment variable, the timezone doesn't change.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Configure TZ environment variable inside the docker container and then run date

What is the expected behavior?

When configuring TZ environment variable the date should change accordingly.

This worked on 0.5.0

What is the motivation / use case for changing the behavior?

This has an impact on queries where the Database is on another timezone since the date that gets placed inside Prometheus is not correct.

Please tell us about your environment:

Version: 0.5.1 Docker

Acsigen avatar Aug 08 '23 13:08 Acsigen

Could you give some information to reproduce the issue like a query example with the metric configuration?

Yannig avatar Nov 22 '23 06:11 Yannig

When I run any query, even the default ones, they come back with UTC timestamp instead of my own Timezone (e.g. Europe/Bucharest).

In previous versions (0.5.0 and below) I was able to configure the container timezone and the queries returned the correct timestamp based on that timezone.

Acsigen avatar Nov 23 '23 09:11 Acsigen