-
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] extraClientConfigs breaking change #1214
Comments
I can make a PR for this, but I don't known which one you prefer:
then:
|
We've hit the same issue. |
Hit this issue as well when trying to add |
We have ran into this today too. We use it to set the external labels and authentication methods . I suggest the introduction of a new variable instead of replacing
|
hit trying to upgrade to 2.5.0, +1 to the first option
|
same, I'm using the |
Same here. I have to re-write the whole file, which is not update proof. extraEnv:
- name: PROMTAIL_PASSWORD
valueFrom:
secretKeyRef:
name: some-pw
key: some-key
extraArgs:
- -config.expand-env=true
config:
lokiAddress: http://loki-loki-distributed-gateway/loki/api/v1/push
file: |
server:
log_level: {{ .Values.config.logLevel }}
http_listen_port: {{ .Values.config.serverPort }}
clients:
- url: {{ tpl .Values.config.lokiAddress . }}
basic_auth:
username: promtail
password: ${PROMTAIL_PASSWORD}
{{- with .Values.config.snippets.extraClientConfigs }}
{{- toYaml . | nindent 2 }}
{{- end }}
positions:
filename: /run/promtail/positions.yaml
scrape_configs:
{{- tpl .Values.config.snippets.scrapeConfigs . | nindent 2 }}
{{- tpl .Values.config.snippets.extraScrapeConfigs . | nindent 2 }} |
@dungdm93 sorry for the late response here, a PR would be welcome, and I think we want to go with something similar to option 2. My vote would be to remove both WDYT? |
@trevorwhitney That great, I create a PR at #1425. |
Merged #1425 |
Before, I have one
lokiAddress
and I useextraClientConfigs
to add extra config/labels before send logs to Loki server.After #1119,
extraClientConfigs
seem used to add extra clients, instead of extra config of existing client. So that will breaking my use-case:The text was updated successfully, but these errors were encountered: