Last modified: 2014-02-07 18:57:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59890, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57890 - [stats] Monitor amount of messages delivered by mail relays (for enotif and everything)
[stats] Monitor amount of messages delivered by mail relays (for enotif and e...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-02 22:00 UTC by Nemo
Modified: 2014-02-07 18:57 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2013-12-02 22:00:32 UTC
As mentioned on bug 52915, we don't have any stats on how many emails we're sending from MediaWiki or otherwise, we have no idea of the impact our choices have though it would of course be quite important to assess it e.g. to have at least a slight idea of how likely we are to be considered spammers. As written elsewhere:
----
Note that we used to have some very aggregate statistics, made by Mark I believe, on the number of mails sent by our mail relays. They died some years ago though, we only have things like
https://bugzilla.wikimedia.org/show_bug.cgi?id=5505#c2
https://bugzilla.wikimedia.org/show_bug.cgi?id=28026#c55
Restoring mail relay statistics should be easier than proper eventlogging and could give some general clue, but it's just a guess I'm making.
----

Ori suggests we could just use whatever command to get the numbers and then send them to ganglia as we do for the job queue stats. mutante points to http://linux.die.net/man/8/eximstats which seems to be part of the standard packages http://packages.ubuntu.com/precise-updates/amd64/exim4-base/filelist
Comment 1 Nemo 2013-12-12 20:52:41 UTC
Turns out we already have a collect_exim_stats_via_gmetric script used in the role misc::fundraising::mail, see <https://ganglia.wikimedia.org/latest/?r=year&cs=&ce=&c=Fundraising+eqiad&h=aluminium.wikimedia.org&tab=m&vn=&hide-hf=false&mc=2&z=medium&metric_group=ALLGROUPS_|_process_|_network_|_memory_|_load_|_disk_|_cpu>

So hopefully it will be enough to add this same cron to the other mail server(s).
Comment 2 Gerrit Notification Bot 2013-12-12 21:58:05 UTC
Change 101117 had a related patch set uploaded by Nemo bis:
Enable collect_exim_stats_via_gmetric cron for mail relay

https://gerrit.wikimedia.org/r/101117
Comment 3 Gerrit Notification Bot 2014-01-24 11:44:04 UTC
Change 101117 merged by Alexandros Kosiaris:
Enable collect_exim_stats_via_gmetric cron for mail relay

https://gerrit.wikimedia.org/r/101117
Comment 4 Nemo 2014-01-25 14:00:34 UTC
Thanks akosiaris! Now we have stats for sodium, but not for mchenry: why and what's the best way to fix it?
https://ganglia.wikimedia.org/latest/?r=day&cs=&ce=&c=Miscellaneous+eqiad&h=sodium.wikimedia.org&tab=m&vn=&hide-hf=false&mc=2&z=medium&metric_group=ALLGROUPS
https://ganglia.wikimedia.org/latest/?r=day&cs=&ce=&c=Miscellaneous+pmtpa&h=mchenry.wikimedia.org&tab=m&vn=&hide-hf=false&mc=2&z=medium&metric_group=ALLGROUPS

Then maybe someone can explain if it's normal that exim_queued_messages is over twice of exim_messages_out. :)
Comment 5 matanya 2014-01-27 06:47:25 UTC
The reason sodium has the stats and mchenry doesn't is sodium has the class exim::roled which is where the script is executed, whereas mchenry lacks it. 

Including the check in mchenry related classes will add the stats to it too.
Comment 6 Nemo 2014-01-30 11:18:08 UTC
https://gerrit.wikimedia.org/r/#/c/68584/ will solve this issue among others, matanya says, but it looks too big and slow a commit. I plan to submit a patch moving the stats to a new class in exim in mail.pp and then add the class to mchenry's site.pp and to exim::roled.
Comment 7 Gerrit Notification Bot 2014-01-31 09:56:26 UTC
Change 110524 had a related patch set uploaded by Nemo bis:
Split exim stats to own class and add it to mchenry

https://gerrit.wikimedia.org/r/110524
Comment 8 Gerrit Notification Bot 2014-02-07 17:52:41 UTC
Change 110524 merged by Alexandros Kosiaris:
Split exim stats to own class and add it to mchenry

https://gerrit.wikimedia.org/r/110524

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links