oracledb_exporter
oracledb_exporter copied to clipboard
Timezone doesn't work with 0.5.1
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
Could you give some information to reproduce the issue like a query example with the metric configuration?
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.