Open deajan opened 1 year ago
Hey @deajan, I think yes, logs would be helpful to test the exporter against and see what's going wrong.
Also, I do not have at all any postfix_lmtp* metrics.
In my dashboard I have the following query for incoming messages and it seems to work good: increase(postfix_lmtp_statuses_total{host="***", status="sent"}) or on() vector(0)
. So it's pretty strange.
I understand that you're getting the metrics on your setup, but mine don't even show up in the /metrics
path.
I've uploaded two postfix logs in issue #6, maybe this will help to diagnose what part of the logs aren't parsed.
Thank you.
@deajan Can you please check whether you've got postfix_smtp_delay_seconds_sum
and postfix_smtp_delay_seconds_count
values for summary labels with NaNs?
It seems like summary values (which postfix_smtp_delay_seconds
are) are only valid for 10 minutes by default and it's pretty standard, so if you have *_sum/*_count
values at least, it's okay.
Also, I've found LMTP log records in one of the log files (looking for lmtp.+status=
) and their metrics appeared correctly when tested against that file.
Unrelated: from your logs I've discovered Recipient address rejected: Rejected by SPF
NOQUEUE reject message should be trimmed down to avoid raw addresses in labels, I'll work it out.
Using postfix_exporter, there are lot of missing values, which show
NaN
Also, I do not have at all any
postfix_lmtp*
metrics.Env:
OS:
I can provide anonymized mail logs if needed.