What steps did you take and what happened:
I upgraded to app-template 3.0.4 recently and started having problem with any servicemonitor that is via app-template. I tracked down the problem and it seems that it is because it doesn't have Job label and Namespace Selector fields. As soon as I added them manually to service monitors, it scraping in VictoriaMetrics. Before that, there were 0/0 servicescrapes.
What did you expect to happen:
I expect serviceMonitor to have job label and namespace selector
Anything else you would like to add:
A quick comparison between, for example, the one created by Grafana (external-secrets as well, etc):
hi, thank you for raising this issue! This feature was never implemented, so that explains why the fields aren't available. I'll add them to the upcoming release 👍
Details
What steps did you take and what happened: I upgraded to app-template 3.0.4 recently and started having problem with any servicemonitor that is via app-template. I tracked down the problem and it seems that it is because it doesn't have Job label and Namespace Selector fields. As soon as I added them manually to service monitors, it scraping in VictoriaMetrics. Before that, there were 0/0 servicescrapes.
What did you expect to happen:
I expect serviceMonitor to have job label and namespace selector
Anything else you would like to add: A quick comparison between, for example, the one created by Grafana (external-secrets as well, etc):
The one created by app-template for nut-exporter:
Additional Information:
Full config is here.
https://github.com/nklmilojevic/home/blob/main/kubernetes/apps/monitoring/nut-exporter/app/helm-release.yaml