apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: garage namespace: {{ .Release.Namespace }} labels: app.kubernetes.io/name: garage app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/part-of: {{ .Release.Name }} spec: selector: matchLabels: app.kubernetes.io/name: garage-main app.kubernetes.io/instance: {{ .Release.Name }} endpoints: - port: admin interval: 1m scrapeTimeout: 30s path: /metrics bearerTokenSecret: name: garage-token-secret key: GARAGE_METRICS_TOKEN