diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-12-20 18:19:14 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-12-20 18:19:14 +0100 |
commit | 832d6e1e2c88455be6bb0929591715499602ad56 (patch) | |
tree | 0849bc75fc199fd0d4dc7b118cbdcdddabe530db /tcpsrv.h | |
parent | 8d2f6675c47c0b7b6d7c644004507d0a85a90cb4 (diff) | |
download | rsyslog-832d6e1e2c88455be6bb0929591715499602ad56.tar.gz rsyslog-832d6e1e2c88455be6bb0929591715499602ad56.tar.bz2 rsyslog-832d6e1e2c88455be6bb0929591715499602ad56.zip |
imtcp: added stats counters
also adds counters to other users of tcpsrv.c method, but these do not
work if default submit method is overwritten (currently only the case
for imdiag, what we don't consider a problem)
Diffstat (limited to 'tcpsrv.h')
-rw-r--r-- | tcpsrv.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -25,6 +25,7 @@ #include "obj.h" #include "prop.h" #include "tcps_sess.h" +#include "statsobj.h" /* support for framing anomalies */ typedef enum ETCPsyslogFramingAnomaly { @@ -40,6 +41,8 @@ struct tcpLstnPortList_s { prop_t *pInputName; tcpsrv_t *pSrv; /**< pointer to higher-level server instance */ ruleset_t *pRuleset; /**< associated ruleset */ + statsobj_t *stats; /**< associated stats object */ + STATSCOUNTER_DEF(ctrSubmit, mutCtrSubmit) tcpLstnPortList_t *pNext; /**< next port or NULL */ }; |