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

[prometheus-stackdriver-exporter] bump to 0.17.0 #4987

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DrFaust92
Copy link
Contributor

What this PR does / why we need it

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

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

Signed-off-by: drfaust92 <[email protected]>
@DrFaust92 DrFaust92 requested a review from rpahli as a code owner November 9, 2024 15:11
Signed-off-by: drfaust92 <[email protected]>
@@ -73,10 +73,10 @@ spec:
mountPath: /etc/secrets/service-account/
{{- end}}
args:
- --google.project-id={{ .Values.stackdriver.projectId }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make this conditional on appVersion. otherwiese it will be a breakting change.

Copy link

@antoinedeschenes antoinedeschenes Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

old flag is still supported, new flag is repeatable, meaning the chart should probably start supporting lists of projectIds and typePrefixes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the "problem" is if someone uses the chart with an older image version it will fail because the old image fails to start. so I would probably add a check for the image version and depending on that adding the flags.

- --monitoring.metrics-interval={{ .Values.stackdriver.metrics.interval }}
- --monitoring.metrics-offset={{ .Values.stackdriver.metrics.offset }}
- --monitoring.metrics-type-prefixes={{ .Values.stackdriver.metrics.typePrefixes | replace " " "" }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also here

Copy link

@antoinedeschenes antoinedeschenes Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link

@antoinedeschenes antoinedeschenes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see deprecation notice https://github.com/prometheus-community/stackdriver_exporter/releases/tag/v0.17.0

Deprecation notice: The comma delimited flags google.project-id and monitoring.metrics-type-prefixes are being replaced by repeatable flags google.project-ids and monitoring.metrics-prefixes. The comma delimited flags will be supported for at least one more release.

@@ -73,10 +73,10 @@ spec:
mountPath: /etc/secrets/service-account/
{{- end}}
args:
- --google.project-id={{ .Values.stackdriver.projectId }}
Copy link

@antoinedeschenes antoinedeschenes Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

old flag is still supported, new flag is repeatable, meaning the chart should probably start supporting lists of projectIds and typePrefixes

- --monitoring.metrics-interval={{ .Values.stackdriver.metrics.interval }}
- --monitoring.metrics-offset={{ .Values.stackdriver.metrics.offset }}
- --monitoring.metrics-type-prefixes={{ .Values.stackdriver.metrics.typePrefixes | replace " " "" }}
Copy link

@antoinedeschenes antoinedeschenes Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

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

Successfully merging this pull request may close these issues.

3 participants