apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: matrix-nicotest labels: team: frontend spec: selector: matchLabels: app.kubernetes.io/component: matrix-synapse endpoints: - port: synapse path: "/_synapse/metrics" namespaceSelector: any: true