...
Some serverStatus metrics stored as long long on the serverSide are returned either as an int, double or long long in the serverStatus call, dependent on value. This is the case for network.bytesIn and network.bytesOut and may be the case for other metrics. Note that this behavior is not consistent across all serverStatus metrics - the metrics section will return int64 values as long long regardless of value. This ticket will be used to: Identify all affected metrics Add handling for the variable types to our SNMP product Correctly define all of these metrics as 64bit in the SNMP MIB. Once a full set of metrics is known I will add a separate ticket for making consistent on the server side. Note that the code that performs this cast is here.
auto commented on Fri, 1 Nov 2013 18:18:09 +0000: Author: {u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'} Message: Merge pull request #13 from jameswahlin/SERVER-11518 SERVER-11518 SNMP: handle variable type serverStatus metrics Branch: master https://github.com/10gen/mongo-enterprise-modules/commit/d6b6a2456af8e1aef589c2fc8c035d04c6c920f4 auto commented on Fri, 1 Nov 2013 18:18:07 +0000: Author: {u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'} Message: Merge pull request #13 from jameswahlin/SERVER-11518 SERVER-11518 SNMP: handle variable type serverStatus metrics Branch: master https://github.com/10gen/mongo-enterprise-modules/commit/d6b6a2456af8e1aef589c2fc8c035d04c6c920f4 auto commented on Fri, 1 Nov 2013 18:18:05 +0000: Author: {u'name': u'James Wahlin', u'email': u'james.wahlin@10gen.com'} Message: SERVER-11518 SNMP: handle variable type serverStatus metrics Branch: master https://github.com/10gen/mongo-enterprise-modules/commit/f252bd9535464990b3e096996f2d9b45cbe4691c james.wahlin@10gen.com commented on Fri, 1 Nov 2013 14:28:37 +0000: Looks like the full list of affected serverStatus metrics is: indexCounters.accesses network.bytesIn network.bytesOut backgroundFlushing.flushes indexCounters.hits indexCounters.misses metrics.getLastError.wtime.num metrics.repl.apply.batches.num metrics.repl.network.getmores.num metrics.repl.oplog.insert.num metrics.repl.preload.docs.num metrics.repl.preload.indexes.num network.numRequests cursors.timedOut metrics.getLastError.wtime.totalMillis metrics.repl.apply.batches.totalMillis metrics.repl.network.getmores.totalMillis metrics.repl.oplog.insert.totalMillis metrics.repl.preload.docs.totalMillis metrics.repl.preload.indexes.totalMillis backgroundFlushing.total_ms