[SERVER-11518] SNMP should handle variable typed serverStatus metrics Created: 01/Nov/13  Updated: 11/Jul/16  Resolved: 01/Nov/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.5.3
Fix Version/s: 2.5.4

Type: Bug Priority: Major - P3
Reporter: James Wahlin Assignee: James Wahlin
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

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.



 Comments   
Comment by auto [ 01/Nov/13 ]

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

Comment by auto [ 01/Nov/13 ]

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

Comment by auto [ 01/Nov/13 ]

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

Comment by James Wahlin [ 01/Nov/13 ]

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

Generated at Thu Feb 08 03:25:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.