For rule/monitor objects reconciliation we need to know corresponding vmalert/vmagent
- monitors:
https://github.com/VictoriaMetrics/operator/blob/master/pkg/controller/servicemonitor/servicemonitor_controller.go#L114
- rules:
https://github.com/VictoriaMetrics/operator/blob/master/pkg/controller/prometheusrule/prometheusrule_controller.go#L110
Currently it works only for exactly one match, but it`s possible to have multiple agents.
So, i think, we have to reconcile objects for all vmagents/vmalerts. Possible performance degradation - need to investigate.
For rule/monitor objects reconciliation we need to know corresponding vmalert/vmagent
https://github.com/VictoriaMetrics/operator/blob/master/pkg/controller/servicemonitor/servicemonitor_controller.go#L114
https://github.com/VictoriaMetrics/operator/blob/master/pkg/controller/prometheusrule/prometheusrule_controller.go#L110
Currently it works only for exactly one match, but it`s possible to have multiple agents.
So, i think, we have to reconcile objects for all vmagents/vmalerts. Possible performance degradation - need to investigate.