summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMars <mfogels@gmail.com>2018-10-06 01:02:55 +0200
committerDylan William Hardison <dylan@hardison.net>2018-10-06 01:03:24 +0200
commitbc31fe722c04724cc4fea6e14e042eff0e3d10ed (patch)
tree4500fd8e03571c16bb9e41163aef9bfe0d18a21a
parent50e5a40ebf72b2ca7d5d31b0aad075a776f4649a (diff)
downloadbugzilla-bc31fe722c04724cc4fea6e14e042eff0e3d10ed.tar.gz
bugzilla-bc31fe722c04724cc4fea6e14e042eff0e3d10ed.tar.xz
Bug 1496832 - Add monitoring for feed daemon becoming unresponsive
Use Datadog to count the number of times that jobs are run by the phabbugz job scheduler. This should catch problems if the process responsible for running the jobs dies.
-rw-r--r--extensions/PhabBugz/lib/Feed.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/extensions/PhabBugz/lib/Feed.pm b/extensions/PhabBugz/lib/Feed.pm
index b338e9a72..d8d4d6921 100644
--- a/extensions/PhabBugz/lib/Feed.pm
+++ b/extensions/PhabBugz/lib/Feed.pm
@@ -220,6 +220,11 @@ sub feed_query {
$delete_build_target->execute($target->{name}, $target->{value});
}
+
+ if (Bugzilla->datadog) {
+ my $dd = Bugzilla->datadog();
+ $dd->increment('bugzilla.phabbugz.feed_query_count');
+ }
}
sub user_query {
@@ -260,6 +265,11 @@ sub user_query {
};
$self->save_last_id($user_id, 'user');
}
+
+ if (Bugzilla->datadog) {
+ my $dd = Bugzilla->datadog();
+ $dd->increment('bugzilla.phabbugz.user_query_count');
+ }
}
sub group_query {
@@ -358,6 +368,11 @@ sub group_query {
INFO( "Project " . $project->name . " updated" );
}
}
+
+ if (Bugzilla->datadog) {
+ my $dd = Bugzilla->datadog();
+ $dd->increment('bugzilla.phabbugz.group_query_count');
+ }
}
sub process_revision_change {