mirror of https://github.com/grafana/loki
helm: make ServiceMonitor cluster label respect clusterLabelOverride (#9690)
**What this PR does / why we need it**:
As of #9218 `clusterLabelOverride` can be used to set the `cluster`
label, however the ServiceMonitor still uses `loki.fullname`. This fixes
that so it will use `loki.clusterLabel` to be consistent with other
components.
**Which issue(s) this PR fixes**:
Fixes #<issue number>
**Special notes for your reviewer**:
**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [ ] Documentation added
- [ ] Tests updated
- [ ] `CHANGELOG.md` updated
- [ ] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/upgrading/_index.md`
- [ ] For Helm chart changes bump the Helm chart version in
`production/helm/loki/Chart.yaml` and update
`production/helm/loki/CHANGELOG.md` and
`production/helm/loki/README.md`. [Example
PR](d10549e3ec
)
pull/9725/head
parent
7696938928
commit
262e9d02e1
Loading…
Reference in new issue