=== MetricsMailet

This Metrics mailet increments a counter on every incoming emails.

This counter is accessible via JMX, or grafana. Read xref:operate/metrics.adoc[more about metrics].

Example :

....
<mailet match="all" class="MetricsMailet">
    <metricName>relayDenied</metricName>
</mailet>
....

Will increment a counter relayDenied