<commit_before>---
g_template_docker:
  name: Template Docker
  zitems:
  - key: docker.ping
    applications:
    - Docker Daemon
    value_type: int

  - key: docker.storage.is_loopback
    applications:
    - Docker Storage
    value_type: int

  - key: docker.storage.data.space.total
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.data.space.used
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.data.space.available
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.data.space.percent_available
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.metadata.space.total
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.metadata.space.used
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.metadata.space.available
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.metadata.space.percent_available
    applications:
    - Docker Storage
    value_type: float
  ztriggers:
  - description: 'docker.ping failed on {HOST.NAME}'
    expression: '{Template Docker:docker.ping.max(#3)}<1'
    priority: high

  - description: 'Docker storage is using LOOPBACK on {HOST.NAME}'
    expression: '{Template Docker:docker.storage.is_loopback.last()}<>0'
    priority: high

  - description: 'Critically low docker storage data space on {HOST.NAME}'
    expression: '{Template Docker:docker.storage.data.space.percent_available.max(#3)}<5 or {Template Docker:docker.storage.data.space.available.max(#3)}<5' # < 5% or < 5GB
    priority: high

  - description: 'Critically low docker storage metadata space on {HOST.NAME}'
    expression: '{Template Docker:docker.storage.metadata.space.percent_available.max(#3)}<5 or {Template Docker:docker.storage.metadata.space.available.max(#3)}<0.1' # < 5% or < 100MB
    priority: high

  # Put triggers that depend on other triggers here (deps must be created first)
  - description: 'Low docker storage data space on {HOST.NAME}'
    expression: '{Template Docker:docker.storage.data.space.percent_available.max(#3)}<10 or {Template Docker:docker.storage.data.space.available.max(#3)}<10' # < 10% or < 10GB
    dependencies:
    - 'Critically low docker storage data space on {HOST.NAME}'
    priority: average

  - description: 'Low docker storage metadata space on {HOST.NAME}'
    expression: '{Template Docker:docker.storage.metadata.space.percent_available.max(#3)}<10 or {Template Docker:docker.storage.metadata.space.available.max(#3)}<0.2' # < 10% or < 200MB
    dependencies:
    - 'Critically low docker storage metadata space on {HOST.NAME}'
    priority: average
<commit_msg>relaxed the docker metadata triggers to be more in line with what docker-storage-setup allocates for metadata.<commit_after>---
g_template_docker:
  name: Template Docker
  zitems:
  - key: docker.ping
    applications:
    - Docker Daemon
    value_type: int

  - key: docker.storage.is_loopback
    applications:
    - Docker Storage
    value_type: int

  - key: docker.storage.data.space.total
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.data.space.used
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.data.space.available
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.data.space.percent_available
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.metadata.space.total
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.metadata.space.used
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.metadata.space.available
    applications:
    - Docker Storage
    value_type: float

  - key: docker.storage.metadata.space.percent_available
    applications:
    - Docker Storage
    value_type: float
  ztriggers:
  - description: 'docker.ping failed on {HOST.NAME}'
    expression: '{Template Docker:docker.ping.max(#3)}<1'
    priority: high

  - description: 'Docker storage is using LOOPBACK on {HOST.NAME}'
    expression: '{Template Docker:docker.storage.is_loopback.last()}<>0'
    priority: high

  - description: 'Critically low docker storage data space on {HOST.NAME}'
    expression: '{Template Docker:docker.storage.data.space.percent_available.max(#3)}<5 or {Template Docker:docker.storage.data.space.available.max(#3)}<5' # < 5% or < 5GB
    priority: high

  - description: 'Critically low docker storage metadata space on {HOST.NAME}'
    expression: '{Template Docker:docker.storage.metadata.space.percent_available.max(#3)}<5 or {Template Docker:docker.storage.metadata.space.available.max(#3)}<0.005' # < 5% or < 5MB
    priority: high

  # Put triggers that depend on other triggers here (deps must be created first)
  - description: 'Low docker storage data space on {HOST.NAME}'
    expression: '{Template Docker:docker.storage.data.space.percent_available.max(#3)}<10 or {Template Docker:docker.storage.data.space.available.max(#3)}<10' # < 10% or < 10GB
    dependencies:
    - 'Critically low docker storage data space on {HOST.NAME}'
    priority: average

  - description: 'Low docker storage metadata space on {HOST.NAME}'
    expression: '{Template Docker:docker.storage.metadata.space.percent_available.max(#3)}<10 or {Template Docker:docker.storage.metadata.space.available.max(#3)}<0.01' # < 10% or < 10MB
    dependencies:
    - 'Critically low docker storage metadata space on {HOST.NAME}'
    priority: average

{'fraction_non_alphanumeric': 0.11103240658756862, 'fraction_numerical': 0.013812643881707101, 'mean_word_length': 3.5585149313962874, 'pattern_counts': {'":': 0, '<': 39, '<?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': '2387927', 'n_tokens_mistral': 1818, 'n_tokens_neox': 1643, 'n_words': 433}