<commit_before>---

- type: replace
  path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
  value:
    name: ExchangeRatesDrifting
    rules:
      - alert: ExchangeRatesDrifting_Critical
        expr: "paas_currency_real_ratio > paas_currency_configured_ratio"
        for: 12h
        labels:
          severity: critical
        annotations:
          summary: "Exchange rate for {{ $labels.currency }} has drifted"
          description: "The real exchange rate for {{ $labels.currency }} has drifted from the configured rate, we are at risk of undercharging."<commit_msg>Tweak alert to be % based, add overcharging<commit_after>---

- type: replace
  path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
  value:
    name: ExchangeRatesDriftingUnderCharging
    rules:
      - alert: ExchangeRatesDriftingUnderCharging_Critical
        expr: "(paas_currency_real_ratio / paas_currency_configured_ratio) > 1.025"
        for: 12h
        labels:
          severity: critical
        annotations:
          summary: "Exchange rate for {{ $labels.currency }} has drifted"
          description: "The real exchange rate for {{ $labels.currency }} has drifted from the configured rate, we are at risk of undercharging."

- type: replace
  path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
  value:
    name: ExchangeRatesDriftingOverCharging
    rules:
      - alert: ExchangeRatesDriftingOverCharging_Critical
        expr: "(paas_currency_real_ratio / paas_currency_configured_ratio) < 0.975"
        for: 12h
        labels:
          severity: critical
        annotations:
          summary: "Exchange rate for {{ $labels.currency }} has drifted"
          description: "The real exchange rate for {{ $labels.currency }} has drifted from the configured rate, we are at risk of overcharging."
{'fraction_non_alphanumeric': 0.08552292632663576, 'fraction_numerical': 0.010303967027305513, 'mean_word_length': 3.1943844492440605, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, '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': '3825539', 'n_tokens_mistral': 584, 'n_tokens_neox': 545, 'n_words': 144}