-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix(helm): Avoid scraping metrics from gateway pod #13350
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
Conversation
I am not sure if we need to do a major version bump. Technically, it's a breaking change, but I don't think it will affect anyone. |
Ah opened a similar PR a while back #12746, was alerting. Seems to resolve the same thing. |
2fed5f0
to
dc02e25
Compare
I've rebased and fixed the merge conflicts that have come up since creating this PR. |
Co-authored-by: Hervé Nicol <[email protected]>
I've rebased this PR again and fixed the merge conflicts that have come up. |
Looking forward for this PR! |
Resolved merge conflicts again. Hoping for a timely review. |
@@ -101,7 +101,7 @@ spec: | |||
{{ toYaml .Values.enterpriseGateway.extraVolumeMounts | nindent 12 }} | |||
{{- end }} | |||
ports: | |||
- name: http-metrics | |||
- name: http |
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.
when the loki/gel image is run in mode gateway
(-target=gateway
), it exposes the metrics under /metrics
url ....
I believe that we have the issue only when nginx is deployed as a gateway.... so, I would configure nginx to expose the metrics under |
Hi, is there an update on this? We need this fix as we have the service monitor target for nginx pod down for quite long time now |
any news on this fix ? |
@vlad-diachenko @hervenicol anything I can do to help unblock a fix for this issue? |
Hey @Starefossen . |
I can confirm that adding the
|
I believe that it's the way we need to fix the issue. |
Can we merge this? #12746 - opened this fix a while back and works locally, just want it upstream. |
this PR can be closed because the issue is fixed in #12746 |
What this PR does / why we need it:
Rename the nginx port name to avoid beeing scraped by the ServiceMonitor:
loki/production/helm/loki/templates/monitoring/servicemonitor.yaml
Lines 32 to 33 in 91a3486
Which issue(s) this PR fixes:
Fixes #13201
Special notes for your reviewer:
Checklist
CONTRIBUTING.md
guide (required)feat
PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.docs/sources/setup/upgrade/_index.md
production/helm/loki/Chart.yaml
and updateproduction/helm/loki/CHANGELOG.md
andproduction/helm/loki/README.md
. Example PRdeprecated-config.yaml
anddeleted-config.yaml
files respectively in thetools/deprecated-config-checker
directory. Example PR