From ce8761048d56c4d18d293bb87a78c145ee8b3c6c Mon Sep 17 00:00:00 2001 From: Auke Willem Oosterhoff Date: Thu, 14 Apr 2016 13:09:07 +0200 Subject: [PATCH] #920 Add exception count per worker. --- plugins/inputs/uwsgi/stat_types.go | 1 + plugins/inputs/uwsgi/uwsgi.go | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/inputs/uwsgi/stat_types.go b/plugins/inputs/uwsgi/stat_types.go index a3795e950..3537b1219 100644 --- a/plugins/inputs/uwsgi/stat_types.go +++ b/plugins/inputs/uwsgi/stat_types.go @@ -27,6 +27,7 @@ type Worker struct { Accepting int `json:"accepting"` Requests int `json:"requests"` DeltaRequests int `json:"delta_requests"` + Exceptions int `json:"exceptions"` HarakiriCount int `json:"harakiri_count"` Signals int `json:"signals"` SignalQueue int `json:"signal_queue"` diff --git a/plugins/inputs/uwsgi/uwsgi.go b/plugins/inputs/uwsgi/uwsgi.go index 06917a247..d6c47cbdb 100644 --- a/plugins/inputs/uwsgi/uwsgi.go +++ b/plugins/inputs/uwsgi/uwsgi.go @@ -102,6 +102,7 @@ func (u *Uwsgi) gatherWorkers(acc telegraf.Accumulator, s *StatsServer) error { "requests": w.Requests, "accepting": w.Accepting, "delta_request": w.DeltaRequests, + "exceptions": w.Exceptions, "harakiri_count": w.HarakiriCount, "signals": w.Signals, "signal_queue": w.SignalQueue,