-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[promtail] fix: rework of #1119 to preserve backwards compatability/features #1242
Conversation
Hi any update on merging this?
image:
tag: 2.5.0
config:
lokiAddress: https://loki/api/v1/push
snippets:
extraClientConfigs: |
tenant_id: tenant-a
config:
lokiAddress: https://loki/api/v1/push
snippets:
extraClientConfigs:
tenant_id: tenant-a
file: |
server:
log_level: {{ .Values.config.logLevel }}
http_listen_port: {{ .Values.config.serverPort }}
clients:
- url: {{ tpl .Values.config.lokiAddress . }}
{{- with .Values.config.snippets.extraClientConfigs }}
{{- toYaml . | nindent 4 }}
{{- end }}
positions:
filename: /run/promtail/positions.yaml
scrape_configs:
{{- tpl .Values.config.snippets.scrapeConfigs . | nindent 2 }}
{{- tpl .Values.config.snippets.extraScrapeConfigs . | nindent 2 }} |
Hi 👋 However, I think that If this PR changes the type of |
Signed-off-by: Tyler Horvath <[email protected]>
Sorry everyone, was a bit selfish and published my version locally to unblock. I've merged in some changes (the major version bump) + an indent fix I never pushed. Apologies that this got lost on my plate of things to do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT of removing lokiAddress
and just exposing an array of clients? I think that value is a hold over from the assumption of there only being one client, and I regret the way I chose to add extra clients while assuming there was always 1 configured by lokiAddress
charts/promtail/values.yaml
Outdated
|
||
# -- You can put any client configs here that will be added in addition to the main client block. | ||
# @default -- empty | ||
extraClients: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of extraClients
, how would you feel above exposing an array of clients
and get rid of lokiAddress
?
I like this, the default in # -- You can put here any keys that will be directly added to the config file's 'client' block.
# A minimum of one client is required.
clients:
# The Loki address to post logs to.
- url: http://loki-gateway/loki/api/v1/push
# external_labels:
# label: value
# basic_auth:
# username: loki
# password: loki
# - url: http://other-client-service.local/ |
Signed-off-by: Tyler Horvath <[email protected]>
Signed-off-by: Tyler Horvath <[email protected]>
I made changes given the feedback, deployed to our dev environment and seems to be 👍. Also took a stab at adding some verbage into the changelog to better communicate the breaking change(s). |
A potential solution for the problem in #1214