>
> For reference for anyone else hitting this. To produce an empty but value
> config file for a specific chart use
>
exporter-node:
prometheusRules:
exporter-node.rules: |-
groups:
- name: exporter-node.rules
rules:
The format to put in custom rules into the yaml is as follows:
# default rules are in templates/general.rules.yaml
prometheusRules:
general.rules: |-
groups:
- name: general.rules
rules:
- record: fd_utilization
expr: process_open_fds / process_max_fds
- alert: FdExhaustionClose
expr: predict_linear(fd_utilization[1h], 3600 * 4) > 1
for: 10m
labels:
severity: warning
where: "<location>"
annotations:
description: '{{ $labels.job }}: {{ $labels.namespace }}/{{ $labels.pod }}
instance
will exhaust in file/socket descriptors within the next 4 hours' - Playbook
appconn#100
summary: file descriptors soon exhausted