#920 Add exception count per worker.

This commit is contained in:
Auke Willem Oosterhoff 2016-04-14 13:09:07 +02:00 committed by David Arnold
parent 7dab44c028
commit ce8761048d
2 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ type Worker struct {
Accepting int `json:"accepting"` Accepting int `json:"accepting"`
Requests int `json:"requests"` Requests int `json:"requests"`
DeltaRequests int `json:"delta_requests"` DeltaRequests int `json:"delta_requests"`
Exceptions int `json:"exceptions"`
HarakiriCount int `json:"harakiri_count"` HarakiriCount int `json:"harakiri_count"`
Signals int `json:"signals"` Signals int `json:"signals"`
SignalQueue int `json:"signal_queue"` SignalQueue int `json:"signal_queue"`

View File

@ -102,6 +102,7 @@ func (u *Uwsgi) gatherWorkers(acc telegraf.Accumulator, s *StatsServer) error {
"requests": w.Requests, "requests": w.Requests,
"accepting": w.Accepting, "accepting": w.Accepting,
"delta_request": w.DeltaRequests, "delta_request": w.DeltaRequests,
"exceptions": w.Exceptions,
"harakiri_count": w.HarakiriCount, "harakiri_count": w.HarakiriCount,
"signals": w.Signals, "signals": w.Signals,
"signal_queue": w.SignalQueue, "signal_queue": w.SignalQueue,