apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: searxng
  labels:
    app.kubernetes.io/instance: searxng
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: searxng
    helm.sh/chart: searxng-4.6.2
  namespace: searxng
spec:
  jobLabel: searxng
  namespaceSelector:
    matchNames:
      - searxng
  selector:
    matchLabels:
      app.kubernetes.io/instance: searxng-browser
      app.kubernetes.io/name: searxng-browser
  endpoints:
    - basicAuth:
        password:
          key: metrics-password
          name: searxng-browser-metrics-auth
        username:
          key: metrics-username
          name: searxng-browser-metrics-auth
      interval: 30s
      path: /metrics
      port: mail
      scrapeTimeout: 15s
