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

Bundle tzdata in promtail for non-POSIX hosts #3333

Closed
chancez opened this issue Feb 12, 2021 · 1 comment
Closed

Bundle tzdata in promtail for non-POSIX hosts #3333

chancez opened this issue Feb 12, 2021 · 1 comment

Comments

@chancez
Copy link
Contributor

chancez commented Feb 12, 2021

Is your feature request related to a problem? Please describe.
I can't set a timezone in my timestamp pipeline configuration, because on Windows/non-POSIX hosts there's no tz database available to go by default.

Describe the solution you'd like
After discussing with @cyriltovena I also learned Go has an option for bundling tzdata. import _ "time/tzdata"

Describe alternatives you've considered

I believe you can provide your own zoneinfo.zip and provide the path to it via setting the ZONEINFO environment variable, according to https://golang.org/pkg/time/#LoadLocation.

@chancez
Copy link
Contributor Author

chancez commented Feb 17, 2021

Should be fixed by #3332

@chancez chancez closed this as completed Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant