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
discovery/kubernetes: fix support for password_file and bearer_token_file #5211
Conversation
Shouldn't this target the |
@gouthamve this isn't a regression from the previous minor release so I'd say that it can wait for v2.8.0 but it is up to you if you want to get it fixed in |
220ef94
to
0199a49
Compare
3c1a447
to
c5f045a
Compare
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
c5f045a
to
df6bd69
Compare
👍 |
Hi @gouthamve, do you still plan to release a new minor version with this fix by any chance? Or can we expect a 2.8 release any time soon? Thanks! |
@tkornai the first RC of 2.8 is slated for the end of the month, see https://github.com/prometheus/prometheus/blob/master/RELEASE.md#release-schedule |
Is Edit: I'm on promtool from master (commit 5fbda4c) The current docs mention it can be left off: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
rule_files:
- /opt/prometheus-rules/*.yml
scrape_configs:
- job_name: 'kubernetes-pods'
kubernetes_sd_configs:
- role: pod
relabel_configs:
- action: labelmap
regex: __meta_kubernetes_pod_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: kubernetes_namespace
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name
- action: labeldrop
regex: '(pod_template_hash)' |
No this shouldn't change with this PR. I'll have a look... |
#5256 should fix it. Thanks for reporting @adamdecaf! |
Closes #5210
Closes #5221