<commit_before>{{- if .Values.prometheus.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: prometheus-maia

data:
  ca.cert: |
{{ .Values.prometheus.ca | indent 4}}
  prometheus.yaml: |
    global:
      scrape_timeout: 55s

    scrape_configs:
    # loop over all vcenter exporters
    {{- range $config := .Values.vcenter_exporter.maia_vcenter_config }}
    - job_name: 'vcenter-{{ $config.name }}'
      static_configs:
        - targets: ['vcenter-exporter-{{ $config.name }}:9102']
    {{- end }}

    # loop over all snmp exporters and exchange exporter and snmp device name, so that
    # the metric is labeled by snmp device name and not by exporter name
    {{- range $config := .Values.snmp_exporter.maia_snmp_config }}
    - job_name: 'snmp-{{ $config.name }}'
      static_configs:
        - targets:
          - {{ $config.target }} # SNMP device
      metrics_path: /snmp
      params:
        module: [{{ $config.name }}]
      relabel_configs:
        - source_labels: [__address__]
          target_label: __param_target
        - source_labels: [__param_target]
          target_label: instance
        - target_label: __address__
          replacement: snmp-exporter-{{ $config.name }}:9116 # SNMP exporter
    {{- end }}
<commit_msg>adjust maia prometheus to latest snmp exporter<commit_after>{{- if .Values.prometheus.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: prometheus-maia

data:
  ca.cert: |
{{ .Values.prometheus.ca | indent 4}}
  prometheus.yaml: |
    global:
      scrape_timeout: 55s

    scrape_configs:
    # loop over all vcenter exporters
    {{- range $config := .Values.vcenter_exporter.maia_vcenter_config }}
    - job_name: 'vcenter-{{ $config.name }}'
      static_configs:
        - targets: ['vcenter-exporter-{{ $config.name }}:9102']
    {{- end }}

    # loop over all snmp exporters and exchange exporter and snmp device name, so that
    # the metric is labeled by snmp device name and not by exporter name
    {{- range $config := .Values.snmp_exporter.maia_snmp_config }}
    - job_name: 'snmp-{{ $config.name }}'
      static_configs:
        - targets:
          - {{ $config.target }} # SNMP device
      metrics_path: /snmp
      params:
        module: [{{ $config.configname }}]
      relabel_configs:
        - source_labels: [__address__]
          target_label: __param_target
        - source_labels: [__param_target]
          target_label: instance
        - target_label: __address__
          replacement: snmp-exporter-{{ $config.name }}:9116 # SNMP exporter
    {{- end }}

{'fraction_non_alphanumeric': 0.12085769980506822, 'fraction_numerical': 0.00935672514619883, 'mean_word_length': 2.6294200848656293, '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': '2004837', 'n_tokens_mistral': 858, 'n_tokens_neox': 826, 'n_words': 202}