summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-03-14 13:44:35 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-03-14 13:44:35 +0100
commite482c13b50b8723f433bc3ff594f28cb2a070818 (patch)
tree5388158e2939085c6bc8de7323a6aed80546aac7 /plugins
parent5ecfdad17e395570edb78698b4805992368c61b1 (diff)
parente6aaf19689791c668ea444a21e470e4db3244cb5 (diff)
downloadrsyslog-e482c13b50b8723f433bc3ff594f28cb2a070818.tar.gz
rsyslog-e482c13b50b8723f433bc3ff594f28cb2a070818.tar.xz
rsyslog-e482c13b50b8723f433bc3ff594f28cb2a070818.zip
Merge branch 'v5-stable' into v5-stable-newstats
Conflicts: plugins/imuxsock/imuxsock.c runtime/queue.c runtime/queue.h
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imuxsock/imuxsock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
index 2f76ed87..0e91a977 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -1035,10 +1035,13 @@ CODEmodInit_QueryRegCFSLineHdlr
/* support statistics gathering */
CHKiRet(statsobj.Construct(&modStats));
CHKiRet(statsobj.SetName(modStats, UCHAR_CONSTANT("imuxsock")));
+ STATSCOUNTER_INIT(ctrSubmit, mutCtrSubmit);
CHKiRet(statsobj.AddCounter(modStats, UCHAR_CONSTANT("submitted"),
ctrType_IntCtr, &ctrSubmit));
+ STATSCOUNTER_INIT(ctrLostRatelimit, mutCtrLostRatelimit);
CHKiRet(statsobj.AddCounter(modStats, UCHAR_CONSTANT("ratelimit.discarded"),
ctrType_IntCtr, &ctrLostRatelimit));
+ STATSCOUNTER_INIT(ctrNumRatelimiters, mutCtrNumRatelimiters);
CHKiRet(statsobj.AddCounter(modStats, UCHAR_CONSTANT("ratelimit.numratelimiters"),
ctrType_IntCtr, &ctrNumRatelimiters));
CHKiRet(statsobj.ConstructFinalize(modStats));