apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: karakeep-meilisearch
  namespace: karakeep
  labels:
    helm.sh/chart: meilisearch-0.25.1
    app.kubernetes.io/name: meilisearch
    app.kubernetes.io/instance: karakeep
    app.kubernetes.io/version: "v1.35.0"
    app.kubernetes.io/component: search-engine
    app.kubernetes.io/part-of: meilisearch
    app.kubernetes.io/managed-by: Helm
spec:
  jobLabel: karakeep
  namespaceSelector:
    matchNames:
      - karakeep
  selector:
    matchLabels:
      app.kubernetes.io/name: meilisearch
      app.kubernetes.io/instance: karakeep
  endpoints:
    - port: http
      path: /metrics
      interval: 1m
      scrapeTimeout: 10s
      bearerTokenSecret:
        name: karakeep-meilisearch-master-key-secret
        key: MEILI_MASTER_KEY
