[Feat]: Add Data point for postfix collector "Average delay"
@ilyam8 is already working on this.
Since Jun 9, 2022.
- Dominant language
- Go
- Stars
- 80.6k
- Forks
- 6.6k
- Avg merge
- 15h 36m
- Merged PRs (30d)
- 304
Description
Problem
Netdata's Postfix collector only offers information about the queue size by data storage and count.
Description
I would like to have a 3rd data point: "average delay". I want to know what's the average age of the message is sitting in the queue and have that plotted over time.
Importance
really want
Value proposition
- No reason to use 3rd party outdated (Perl based) stats tools to get this information
- Adds more insight into the health of your mail server
- Keeps data in one place
- Allows you to setup an alarm if average message age (aka delay) is too high
- Improve user experience by allowing system administrators to proactively monitor for mail delays.
Proposed implementation
It's possible to calculate a delay data point using the information available from postque. There is a property called arrival_time that contains the Unix timestamp of when the message was first seen.
This information can be used to calculate an average delivery delay in a given period for all mail in the queue at the time of polling.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.