I have a setup similar to https://fabianlee.org/2022/07/07/prometheus-monitoring-a-custom-service-using-servicemonitor-and-prometheusrule/ that uses kube-prometheus-stack with service monitor to scrape the actuator prometheus end point.
I would want to add new labels to every metric coming through the service monitor scrapes. eg cluster: xyz
Given I am not using scrape_config under prometheusSpec I am not sure how to accomplish this in the service monitor setup. The one possible solution I think is to have service Monitor config transfer label from service (targetLabels) but I think this would make the service aware of cluster which I am trying to avoid.