<prometheus-listener>
The pmta_smtp_first_attempt_seconds metric carries a receiver label, but not for everyone. The line sets a file with a list of names — one per line — and only they get their own label. The rest fall into other.
The limit is strict: a hundred names. This is not arbitrary — that is how metrics work: each new label value creates a separate series, and an unlimited list would turn one metric into thousands. The vendor chose a ceiling for you beyond which the explosion begins.
The line applies only with track-time-first-attempt enabled, and it lives in the <prometheus-listener> block — that is, it configures not the counting but its representation in the metric.
Without it the metric is not useless: it remains, just with the other label for all receivers. The overall delay is visible, the breakdown by receivers is not.
If we do, the list is worth building from the fleet automatically — the receivers that account for the bulk of the traffic are known to us, and a hundred names cover everything worth analyzing by name with room to spare.
The list is short and meaningful, not complete:
| What | Note |
|---|---|
| format | a text file, one name per line |
| ceiling | a hundred unique names |
| the ones not listed | get the other label, they do not disappear from the metric |
The line is useless without track-time-first-attempt.
# by name — only the ones being analyzed; the rest go to other track-time-first-attempt true <prometheus-listener 0/0:9090> time-first-attempt-domains-file /etc/pmta/tfa-domains.txt</prometheus-listener>
what people get wrong and how it ends2 mistakes▶
§ 3.3.25.1
our experience
2 relations
curl -s http://NODE:9090/metrics | grep pmta_smtp_first_attempt_seconds
3 articles
◇What the node tells about itself and through which channelsSeven observation surfaces: the web monitor, the console in four formats, the log, accounting, accounting search, metrics and export to external analytics.◇The telemetry contractOne block describes the accounting output in full: which record types, which fields, where they go, how files rotate and what gets anonymized.◇How an accounting record is structuredHow an accounting record is structured: the record type in the first column, then the fields, whose composition is configurable.