<commit_before>{{- define "prometheus.alerts" }}
{{/* Generate Prometheus Alert Rules */}}
{{- $values := .Values.jumperver.alerts }}
{{- if $values.enabled }}
{{- range $path, $bytes := .Files.Glob "alerts/*.alerts" }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule

metadata:
  name: {{ printf "%s" $path | replace "/" "-" }}
  labels:
    type: alerting-rules
    prometheus: {{ required "$values.prometheus missing" $values.prometheus }}

spec:
{{ printf "%s" $bytes | indent 2 }}

{{- end }}
{{- end }}
{{ end -}}<commit_msg>correcting alert<commit_after>{{- $values := .Values.jumperver.alerts }}
{{- if $values.enabled }}
{{- range $path, $bytes := .Files.Glob "alerts/*.alerts" }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule

metadata:
  name: {{ printf "jumpserver-exporter-%s" $path | replace "/" "-" }}
  labels:
    app: jumpserver-exporter
    prometheus: {{ required "$values.prometheus missing" $values.prometheus }}

spec:
{{ printf "%s" $bytes | indent 2 }}

{{- end }}
{{- end }}
{'fraction_non_alphanumeric': 0.21067961165048543, 'fraction_numerical': 0.003883495145631068, 'mean_word_length': 3.817757009345794, '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': '5935254', 'n_tokens_mistral': 367, 'n_tokens_neox': 351, 'n_words': 80}