-
Notifications
You must be signed in to change notification settings - Fork 40.4k
Add prometheus-to-sd-exporter to metadata-proxy addon; bump to v0.1.4 #54653
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
Add prometheus-to-sd-exporter to metadata-proxy addon; bump to v0.1.4 #54653
Conversation
Block on GoogleCloudPlatform/k8s-metadata-proxy#5. |
@@ -40,13 +42,22 @@ spec: | |||
limits: | |||
memory: "32Mi" | |||
cpu: "50m" | |||
# BEGIN_PROMETHEUS_TO_SD | |||
- name: prometheus-to-sd-exporter | |||
image: gcr.io/google_containers/prometheus-to-sd:v0.1.2 |
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.
@loburm Should this be v0.2.2?
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.
Yes, please use 0.2.2 (as I remember 0.1.2 even don't have --source flag). Also it may have sense to add pod_name and pod_namespace, see #54635
Just pay attention that in future we will change pod name to pod id (currently not all kubernetes downward api support it)
/assign @crassirostris |
4b5316f
to
7cbcf6d
Compare
/retest |
1 similar comment
/retest |
image: gcr.io/google_containers/prometheus-to-sd:v0.2.2 | ||
command: | ||
- /monitor | ||
- --stackdriver-prefix={{ prometheus_to_sd_prefix }}/addons/metadata_proxy |
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.
you don't need to add metadata_proxy as a prefix. Metric name is built as:
prefix/component_name/(metric_name without component_name)
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.
Done; how does it know the component_name?
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.
It's taken from the first part of --source flag. So if you specify multiple sources, each one is going to have a separate stackdriver prefix.
cluster/gce/gci/configure-helper.sh
Outdated
@@ -1864,6 +1864,8 @@ EOF | |||
fi | |||
if [[ "${ENABLE_METADATA_PROXY:-}" == "simple" ]]; then | |||
setup-addon-manifests "addons" "metadata-proxy/gce" | |||
local -r metadata_proxy_yaml="${dst_dir}/metadata-proxy/gce/metadata-proxy.yaml" | |||
update-prometheus-to-sd-parameters ${metadata_proxy_yaml} |
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.
The same is required for the corresponding file in container-linux dir.
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.
Done.
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.
SGTM, but would wait until @loburm lgtms
- name: config-volume | ||
configMap: | ||
name: metadata-proxy-config | ||
- name: ssl-certs |
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.
Please remove this volume, this is not a requirement for prom-to-sd and will be removed across all of K8s soon
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.
Yay! Done.
@loburm ptal. |
(Tests aren't passing because v0.1.4 doesn't exist yet (xref GoogleCloudPlatform/k8s-metadata-proxy#5). Waiting on #52744. |
/lgtm |
/assign @cjcullen |
/retest |
c44a42d
to
b604133
Compare
Addressed @cjcullen's comments, plus another rebase. |
Gah, didn't mean to close. |
/lgtm |
94be8fe
to
ce62faa
Compare
9e7980c
to
fa4493d
Compare
Added change in e2e image, which was causing e2e failures. Ptal. |
/lgtm |
fa4493d
to
1863b16
Compare
…to v0.1.4 and e2e to v0.0.2; remove configmag
1863b16
to
be8aaf9
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cjcullen, ihmccreery, loburm, mikedanese Associated issue: 8867 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
@ihmccreery: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
This PR seems to cause a scalability regression - #55695. |
What this PR does / why we need it: Add metrics exporters to the metadata-proxy addon for GCE. Work toward #8867.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
Release note: