The endpoint property honorLabels: true should be set so that
different rgw instances can show separate prometheus
values instead of being aggregated.
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit eed1033485)
21 lines
426 B
YAML
21 lines
426 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: rook-ceph-mgr
|
|
namespace: rook-ceph # namespace:cluster
|
|
labels:
|
|
team: rook
|
|
spec:
|
|
namespaceSelector:
|
|
matchNames:
|
|
- rook-ceph
|
|
selector:
|
|
matchLabels:
|
|
app: rook-ceph-mgr
|
|
rook_cluster: rook-ceph # namespace:cluster
|
|
endpoints:
|
|
- port: http-metrics
|
|
path: /metrics
|
|
interval: 10s
|
|
honorLabels: true
|