-
Notifications
You must be signed in to change notification settings - Fork 16.9k
[stable/concourse]: Add ServiceMonitor #11289
Conversation
This commit: - Adds documentation for Prometheus values. - Adds Prometheus Operator ServiceMonitor Signed-off-by: Kamil Zabielski <xul.sitatirev@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: xulsitatirev If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @xulsitatirev. 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. 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. |
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.
@@ -81,6 +81,8 @@ The following table lists the configurable parameters of the Concourse chart and | |||
| `web.ingress.enabled` | Enable Concourse Web Ingress | `false` | | |||
| `web.ingress.hosts` | Concourse Web Ingress Hostnames | `[]` | | |||
| `web.ingress.tls` | Concourse Web Ingress TLS configuration | `[]` | | |||
| `web.prometheus.enabled` | Enable Prometheus metrics endpoint | `false` | |
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.
Hey, the prometheus.enabled
thing under web
is actually under concourse.web.prometheus.enabled
, right? From the set of variables that are more directly mapped to concourse web
commands (which we end up not documenting in the README.md)
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.
@cirocosta I have seen these variables are not documented.
I think we might improve my pull-request and document these variables.
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.
Yeah, not having those indeed break the pattern that is established regarding documenting all the values under values.yaml
in README.md
.
I'd say we can have a separate PR for that though - the change would involve a bunch of additions to the README.md. Wdyt?
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.
Definitely. I think this should be a separate pull-request.
I will be happy to help with that.
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.
👍 I just opened #11300 to keep track of it
stable/concourse/Chart.yaml
Outdated
@@ -1,5 +1,5 @@ | |||
name: concourse | |||
version: 3.7.2 | |||
version: 3.7.3 |
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.
Given that this ends up adding new functionality, would it make more sense to have it as a minor
bump instead of a patch
?
MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards-compatible manner, and
PATCH version when you make backwards-compatible bug fixes.
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.
@cirocosta Regarding semantic versioning, I fully agree.
I decided to make a patch
, because I didn't break the contract at any point and improved documentation, but of course, I have added one feature.
I will bump the version
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.
Fixed.
/ok-to-test |
I fully agree we should make:
What I would think about is to make somehow a refactor of variables convention. |
Regarding refactoring the variables and removing the hard-coded annotations, I think that's great! At the same time, it'd be nice to try to be as less backward incompatible as possible, although I think being able to support more workflows (not assuming It'd also be nice to see if we can follow a pattern that might be already established out there in other charts around this 🤔 Maybe it's a matter of giving a try going with the refactor and collecting some thoughts from the other folks too. Wdyt? thx! |
charts/stable/nginx-ingress/values.yaml Line 279 in 61662f1
|
Signed-off-by: Kamil Zabielski <xul.sitatirev@gmail.com>
Thanks for putting the time into it! From what you saw in the charts, does the following plan look like something that makes sense?
With those, here are some sample configurations that I think we'd enable:
concourse:
web:
prometheus:
enabled: true
bindPort: 1337
web:
annotations: # overriding default annotations ({})
prometheus.io/scrape: "true"
prometheus.io/port: "1337" This would generate just the regular Web service and put those annotations under the web deployment, thus, making the pods scrapable.
concourse:
web:
prometheus:
enabled: true
bindPort: 1337
prometheus:
service:
enabled: true
annotations: # overriding default annotations ({prometheus.io ...})
something.else.io/scrape: "true"
something.else.io/port: "1337"
serviceMonitor:
enabled: false This would generate an extra service from
concourse:
web:
prometheus:
enabled: true
prometheus:
service:
enabled: true
serviceMonitor:
enabled: true This would generate both the extra prometheus service, as well as the ServiceMonitor object. Wdyt? ps.: the rationale for making Thx! |
(a) If someone wants to add (b) If someone wants to add a (c) I would create a service for metrics every time (in the end, boolean (d) I am fully in separating service (endpoints) for service, per se, and monitoring. Useful for What do you think? |
@cirocosta Do you want me to resolve the conflict? |
Hi @xulsitatirev , yeah, please! The plan you outlined sounds good to me. How do you feel about going for it in this very same PR? Thx! |
@cirocosta I will handle it. |
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. |
This issue is being automatically closed due to inactivity. |
What this PR does / why we need it:
This commit:
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]