apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: garage
  labels:
    prometheus: default
spec:
  endpoints:
    - honorLabels: true
      path: /metrics
      port: metrics
      scheme: http
      scrapeTimeout: 30s
  jobLabel: garage
  namespaceSelector:
    matchNames:
      - garage
  selector:
    matchLabels:
      app.kubernetes.io/component: metrics