apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    app.kubernetes.io/component: query-cache
    app.kubernetes.io/instance: observatorium-xyz
    app.kubernetes.io/name: thanos-query-frontend
    app.kubernetes.io/part-of: observatorium
    app.kubernetes.io/version: master-2020-08-12-70f89d83
  name: observatorium-xyz-thanos-query-frontend
  namespace: observatorium
spec:
  endpoints:
  - port: http
    relabelings:
    - separator: /
      sourceLabels:
      - namespace
      - pod
      targetLabel: instance
  selector:
    matchLabels:
      app.kubernetes.io/component: query-cache
      app.kubernetes.io/instance: observatorium-xyz
      app.kubernetes.io/name: thanos-query-frontend
      app.kubernetes.io/part-of: observatorium
