-
Notifications
You must be signed in to change notification settings - Fork 3
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
Additional config options are needed to configure ServiceMonitor #25
Comments
Why not directly edit the generated ServiceMonitors? |
That will be manual right? Or you are saying there is a way to programmatically edit it from operator after it gets created? |
@apu1111, sorry for slow response. Before you spend too much time trying to make a pr, I think it will be worth while to work out the design. My main concerns are:
In general I would like to go with a model where we use loose coupling when integrating with external projects. One of the ideas that I am thinking about is provide a helm chart for postgres CRD. This has been a request for some time. In that chart we can bundle a Postgres CRD, ServiceMonitor CRD, and any additional CRD (for say Grafana, Datadig, etc.) and use chart values file to pass in any parameter. What do you think? |
Hi @tamalsaha I think this should be possible even now by setting |
👍 |
I created a ServiceMonitor explicitly and set MongoDB CRD's
|
Going forward AppsCode operators will only add Prometheus exporter sidecar and create a stats service. It will not apply Promethus annotations on stats service or create ServiceMonitor. xref: #25 Signed-off-by: Tamal Saha <[email protected]>
Going forward AppsCode operators will only add Prometheus exporter sidecar and create a stats service. It will not apply Promethus annotations on stats service or create ServiceMonitor. xref: #25 Signed-off-by: Tamal Saha <[email protected]>
Going forward AppsCode operators will only add Prometheus exporter sidecar and create a stats service. It will not apply Promethus annotations on stats service or create ServiceMonitor. xref: #25 Signed-off-by: Tamal Saha <[email protected]>
@apu1111 , I have updated the exporter api accordingly. Also, updated the kubedb apis (not implemented yet) kubedb/apimachinery#476 |
@apu1111 , I wonder if kustomize will be a better solution for something like this. One of the issues with Charts is that almost every field might end up on the Values file. |
Hi @tamalsaha, "kustomize" is a very good tool but will it not force people to use kustomize? How about handling "helm release/rollback/list" commands? Does it go well with helm? Unless someone wants to customize values, default helm charts provided by upstream repo should work just fine. In the default ServiceMonitor manifest, only necessary and mandatory parameters would be present. |
I think we are going to do both. First customize, then auto generate charts from those. |
Currently all database CRDs support only minimal configuration under
spec.monitor.prometheus
. There are other fields under ServiceMonitor CRD which users will be interested to configure likerelabelings
,metricRelabelings
etc. This issue is to create additional fields inPrometheusSpec
to support these. Probably via a generic field calledadditionalConfig
.https://github.com/coreos/prometheus-operator/blob/master/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
The text was updated successfully, but these errors were encountered: