From a577420536714f9f08d537fb0b002474b3d92157 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 fd719d56f..cb7b8307d 100644 --- a/plugins/inputs/uwsgi/uwsgi.go +++ b/plugins/inputs/uwsgi/uwsgi.go @@ -98,6 +98,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,