<commit_before>apiVersion: monitoring.coreos.com/v1
kind: PodMonitor

metadata:
  name: prometheus-{{ .Values.vrops.prometheusName }}-vrops-inventory-exporter
  labels:
    prometheus: {{ .Values.vrops.prometheusName }}

spec:
  jobLabel: vrops-inventory-exporter

  selector:
    matchLabels:
      target: vrops-inventory-exporter

  namespaceSelector:
    matchNames: [vmware-monitoring]

  podMetricsEndpoints:
    - interval: 60s
      scrapeTimeout: 50s
      path: /metrics
      scheme: http
      port: metrics
      relabelings:
        - sourceLabels: [job]
          regex: (vrops)(-exporter-)(vrops-vc-.+)
          targetLabel: job
          replacement: ${1}
      metricRelabelings:
        - action: labeldrop
          regex: "container|instance|endpoint|pod|namespace|service"<commit_msg>[vrops-exporter] podmonitor relabelings<commit_after>apiVersion: monitoring.coreos.com/v1
kind: PodMonitor

metadata:
  name: prometheus-{{ .Values.vrops.prometheusName }}-vrops-inventory-exporter
  labels:
    prometheus: {{ .Values.vrops.prometheusName }}

spec:
  jobLabel: vrops-inventory-exporter

  selector:
    matchLabels:
      target: vrops-inventory-exporter

  namespaceSelector:
    matchNames: [vmware-monitoring]

  podMetricsEndpoints:
    - interval: 60s
      scrapeTimeout: 50s
      path: /metrics
      scheme: http
      port: metrics
      relabelings:
        - targetLabel: job
          replacement: vrops-inventory-exporter
      metricRelabelings:
        - action: labeldrop
          regex: "container|instance|endpoint|pod|namespace|service"
{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.006962025316455696, 'mean_word_length': 3.0025316455696203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6651756', 'n_tokens_mistral': 521, 'n_tokens_neox': 484, 'n_words': 91}