Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-67701

Add tracking for change stream options

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Change streams, Diagnostics
    • None

      Add to db.serverStatus().metrics

      changeStreams: {
      	cluster: 0,
      	database: 2, 
      	collection: 3,
      	showExpandedEventsTrue: 0,
      	fullDocumentBeforeChange: {
      		required: 1,
      		whenAvailable: 0
      	},
      	fullDocument: {
      		required: 0,
      		whenAvailable: 0,
      		updateLookup: 0
      	},
      	pipeline: 2
      }
      

      I discovered that internal stages for change streams like '$_internalChangeStreamAddPostImage' are only tracked in sharded clusters so we'll not have visibility into usage on replica sets, therefore I suggest tracking all the interesting options in a dedicated section.

            Assignee:
            kateryna.kamenieva@mongodb.com Katya Kamenieva
            Reporter:
            kateryna.kamenieva@mongodb.com Katya Kamenieva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: