[stable/traefik] Decouple prometheus metrics to dashboard#14946
Conversation
|
Hi @mazzy89. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
Hi @mazzy89, I like where this PR is going, but can you add a Thanks! |
|
@dtomcej So if I have understood correctly, you are proposing to not change the |
db5b9a3 to
6d06f37
Compare
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
|
If anyone could take a look, I'd really appreciate it. thank you 🙏 |
d00b0bb to
eedd88f
Compare
|
Yeah it looks like they are. It’s the killer with metrics and dashboard.
…On Mon, 16 Sep 2019 at 11:10, Szymon Szypulski ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In stable/traefik/templates/service.yaml
<#14946 (comment)>:
> @@ -55,7 +55,7 @@ spec:
targetPort: httpn
{{- end }}
{{- if (and (.Values.metrics.prometheus.enabled) (not (.Values.metrics.prometheus.restrictAccess)))}}
- - port: 8080
Aren't all ports exported to the external ELB? I believe they were, when I
tried to use it last time.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#14946?email_source=notifications&email_token=AA42IJUIJKQ6L4LMA6B4LWDQJ5LPRA5CNFSM4HZ2SVVKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCEZI7DQ#discussion_r324596028>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA42IJQO3P3II2ZJWRZUR6DQJ5LPRANCNFSM4HZ2SVVA>
.
|
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
|
@mazzy89 |
26bc81f to
8e17252
Compare
Before this PR, in case the dashboard was not enabled, the Prometheus metrics were disabled. It is now possible to enable Prometheus metrics having at the same time the dashboard disabled. Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz>
8e17252 to
0ca59d8
Compare
|
/ok-to-test |
|
Thanks a lot @zanhsieh for the fast reaction ❤️ |
|
@emilevauge |
|
🙏 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mazzy89, vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
This was a breaking change for us as all traefik metrics vanished after rollout :-( We had to change chart settings and switch from pod to service annotations. Replace: With: I also doubt that the pr made sense at all as we used metrics all the time but never used the dashboard. |
If I understand it correctly this point here was to be able to expose metrics without exposing the dashboard ... which sounds exactly like your use-case |
Before this PR, in case the dashboard was not enabled, the Prometheus metrics were disabled. It is now possible to enable Prometheus metrics having at the same time the dashboard disabled. Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz>
…18380) * [stable/traefik] Decouple prometheus metrics to dashboard (#14946) Before this PR, in case the dashboard was not enabled, the Prometheus metrics were disabled. It is now possible to enable Prometheus metrics having at the same time the dashboard disabled. Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz> Fix Fix for Jobs. Jobs also have `"helm.sh/hook": post-install` so they don't have this configmap after start. Pods won't start because of this. Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> Update Chart.yaml version up Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> fix Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * added expire to values Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * add ability to set expire Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * remove blank line Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * Bump version Co-Authored-By: Cédric de Saint Martin <cedric@desaintmartin.fr> Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * Added new conf params to Readme Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com>
…elm#18380) * [stable/traefik] Decouple prometheus metrics to dashboard (helm#14946) Before this PR, in case the dashboard was not enabled, the Prometheus metrics were disabled. It is now possible to enable Prometheus metrics having at the same time the dashboard disabled. Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz> Fix Fix for Jobs. Jobs also have `"helm.sh/hook": post-install` so they don't have this configmap after start. Pods won't start because of this. Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> Update Chart.yaml version up Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> fix Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * added expire to values Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * add ability to set expire Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * remove blank line Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * Bump version Co-Authored-By: Cédric de Saint Martin <cedric@desaintmartin.fr> Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * Added new conf params to Readme Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com>
Before this PR, in case the dashboard was not enabled, the Prometheus metrics were disabled. It is now possible to enable Prometheus metrics having at the same time the dashboard disabled. Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz>
…elm#18380) * [stable/traefik] Decouple prometheus metrics to dashboard (helm#14946) Before this PR, in case the dashboard was not enabled, the Prometheus metrics were disabled. It is now possible to enable Prometheus metrics having at the same time the dashboard disabled. Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz> Fix Fix for Jobs. Jobs also have `"helm.sh/hook": post-install` so they don't have this configmap after start. Pods won't start because of this. Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> Update Chart.yaml version up Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> fix Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * added expire to values Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * add ability to set expire Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * remove blank line Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * Bump version Co-Authored-By: Cédric de Saint Martin <cedric@desaintmartin.fr> Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com> * Added new conf params to Readme Signed-off-by: Nikita Massalitin <nmassalitin@pushwoosh.com>
|
@monotek Wont scraping metrics from the Service only give you one random Pod's metrics each time? Wouldn't this change be better? |
What this PR does / why we need it:
Before this PR, in case the dashboard was not enabled, the Prometheus metrics were disabled.
It is now possible to enable Prometheus metrics having at the same time the dashboard disabled.
I've fully tested the PR locally and it works as expected.
Signed-off-by: Salvatore Mazzarino dev@mazzarino.cz
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged)Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
[stable/chart])