-
Notifications
You must be signed in to change notification settings - Fork 759
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 a prometheus serviceMonitor resource to the helm chart. #659
Comments
It would also be helpful to include https://github.com/open-policy-agent/contrib/tree/main/grafana-dashboard also to the chart like kubernetes/ingress-nginx#6381 (comment) when enabling the ServiceMonitor. |
The Gatekeeper's default exposed metrics may not be what people expect, they are just some generic counters and distributions about gatekeeper's internals, and there is nothing about specific constraints, constaintTemplates, and/or violations. The list of these metrics is captured in https://open-policy-agent.github.io/gatekeeper/website/docs/metrics/. There is also the https://github.com/open-policy-agent/contrib/tree/main/gatekeeper_mtail_violations_exporter item under the contrib (open-policy-agent/contrib#137) |
As I see #689 got stuck on the suggestion to push that into the contrib repo and eventually dropped. I read that suggestion of moving that away from Chart to contrib as "we have no intention to maintain ServiceMonitors as part of this Chart". Is there an explicit decision about releasing any artifacts from the https://github.com/open-policy-agent/contrib repo as part of the gatekeeper chart, or are you aiming for the gatekeeper Chart only having resources from non-contrib repos? |
Unfortunately this would have to live in contrib. We want to avoid including 3rd party projects in our default manifsts/charts, as we don't want to imply we will provide ongoing support for those integrations, and don't want to risk things like dealing with incompatibilities due to version skew. |
That's understandable but can you explicitly close this by rejecting to signal others that this won't happen. |
Sure thing. |
It would be nice if the helm chart optionally included a prometheus operator service monitor. This will tell prometheus operator to create a scrape config, load it into the prometheus config, and start scraping the metrics that OPA serves. It's a well known and practiced pattern to include these into helm charts rather than through an annotation...
I looked at doing this, i was going to add the service monitor into the helmify kustomize-for-helm.yaml and add a new if statement to the helmify.go script that post processes the kustimize to add in the sprig templating if statement... However, I suspect i need to add a bit more kustomize magic?
The text was updated successfully, but these errors were encountered: