Hello,
I've been running the exporter for a while. Looking at the output of --log.unsupported, I have a few questions/suggestions.
1. smtp connection refused / no route
The postfix_smtp_connection_timed_out_total appears to be incrementing if the smtp output line has Connection timed out . I see other reasons for smtp connection errors (the domain and IP were changed for privacy reasons):
postfix/smtp[17813]: connect to domain.com[192.168.0.1]:25: No route to host
postfix/smtp[3517]: connect to domain.com[192.168.0.1]:25: Connection refused
Would it make sense to do one of these:
- adjust the Regex to include those as well
- do a separate metric for each
- rename the
postfix_smtp_connection_timed_out_total to something that would be more inclusive to any matter of connection related issues of the smtp service and adjust the Regex to include the examples above as well?
2. deferred messages being missed
I can see that some status=deferred messages are being missed. I believe its due to them being logged under tlsproxy/error rather than postfix/smtp ?
postfix/error[9407]: 4cDCnd66Hyz1XPWFF: to=<user@domain.com>, orig_to=<other-user@other-domain.net>, relay=none, delay=248321, delays=248262/59/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to domain.com[192.168.0.1]:25: Connection timed out)
postfix/error[30919]: 4cClSJ1Jh1z1XPY9b: to=<user3@domain3.net>, relay=none, delay=317055, delays=317055/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail.domain3.net[192.168.0.1]:25: Connection timed out)
Would it make sense to add a parser for postfix/error, but have it use the same Regex as smtpStatusLine and increment the same counter?
Hello,
I've been running the exporter for a while. Looking at the output of
--log.unsupported, I have a few questions/suggestions.1. smtp connection refused / no route
The
postfix_smtp_connection_timed_out_totalappears to be incrementing if the smtp output line hasConnection timed out. I see other reasons for smtp connection errors (the domain and IP were changed for privacy reasons):Would it make sense to do one of these:
postfix_smtp_connection_timed_out_totalto something that would be more inclusive to any matter of connection related issues of the smtp service and adjust the Regex to include the examples above as well?2. deferred messages being missed
I can see that some
status=deferredmessages are being missed. I believe its due to them being logged undertlsproxy/errorrather thanpostfix/smtp?Would it make sense to add a parser for
postfix/error, but have it use the same Regex assmtpStatusLineand increment the same counter?