apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: argocd-metrics namespace: argocd labels: team: undercloud spec: #namespaceSelector: # matchNames: # - argocd-metrics selector: matchLabels: app.kubernetes.io/name: argocd-metrics endpoints: - port: metrics #path: /metrics interval: 5s --- apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: argocd-notifications-controller-metrics namespace: argocd labels: team: undercloud spec: #namespaceSelector: # matchNames: # - argocd-metrics selector: matchLabels: app.kubernetes.io/name: argocd-notifications-controller-metrics endpoints: - port: metrics #path: /metrics interval: 5s --- apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: argocd-server-metrics namespace: argocd labels: team: undercloud spec: #namespaceSelector: # matchNames: # - argocd-metrics selector: matchLabels: app.kubernetes.io/name: argocd-server-metrics endpoints: - port: metrics #path: /metrics interval: 5s