diff --git a/README.md b/README.md
index 9b891e7..c85ac1b 100644
--- a/README.md
+++ b/README.md
@@ -46,6 +46,7 @@ Simple postfix relay host ("postfix null client") for your Docker containers. Ba
- [Verifying your DKIM setup](#verifying-your-dkim-setup)
- [Docker Secrets / Kubernetes secrets](#docker-secrets--kubernetes-secrets)
- [Helm chart](#helm-chart)
+ - [Metrics](#metrics)
- [Extending the image](#extending-the-image)
- [Using custom init scripts](#using-custom-init-scripts)
- [Security](#security)
@@ -617,6 +618,16 @@ Chart configuration is as follows:
| `persistence.storageClass` | `""` | Storage class |
| `recreateOnRedeploy` | `true` | Restart Pods on every helm deployment, to prevent issues with stale configuration(s). |
+### Metrics
+
+You may enable metrics on the cart by simply setting `metrics.enabled=true`. Of course, this comes with some caveats, namely:
+
+- Postfix logs will (by default, if you don't override this) go to `/var/log/mail.log` _as well_ as to stdout.
+- `/var/log/mail.log` will be in plain-text format (always), no matter what you set `LOG_FORMAT` to
+
+Please se helm chart's `values.yaml` for further configuration options and how to enable `ServiceMonitor`, if you need it for
+Prometheus.
+
## Extending the image
### Using custom init scripts
diff --git a/configs/rsyslog.conf b/configs/rsyslog.conf
index 5613564..bab8fda 100644
--- a/configs/rsyslog.conf
+++ b/configs/rsyslog.conf
@@ -47,14 +47,13 @@ template(name="plain" type="list") {
if $syslogseverity <= '6' then {
# Do not log healthchecks
- if ($msg contains "connect from localhost[127.0.0.1]") then { stop }
- if ($msg contains "lost connection after EHLO from localhost[127.0.0.1]") then { stop }
- if ($msg contains "disconnect from localhost[127.0.0.1] ehlo=1 commands=1") then { stop }
+ if ($msg contains_i "connect from localhost[127.0.0.1]") then { stop }
+ if ($msg contains_i "lost connection after EHLO from localhost[127.0.0.1]") then { stop }
+ if ($msg contains_i "disconnect from localhost[127.0.0.1] ehlo=1 commands=1") then { stop }
#
#action(type="mmexternal" binary="/scripts/email-anonymizer.sh " interface.input="msg")
#
action(type="omfile" DynaFile="devicelog" template="" DirCreateMode="0755" FileCreateMode="0644")
- # enable below to stop processing further this log
}
include(file="/etc/rsyslog.d-metrics/*.conf" mode="optional")