apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: gitea namespace: gitea labels: team: core spec: selector: matchLabels: app.kubernetes.io/name: gitea endpoints: - port: http path: /metrics