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

Free Monitoring initial 10-metric payload interval is 1 sec, not 60 sec

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 4.0.0-rc5
    • Fix Version/s: 4.0.0-rc6, 4.1.1
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Steps To Reproduce:
      Hide

      1. Start Free Monitoring service
      2. Start rc5 mongod with Free Monitoring disabled
      3. Wait a few seconds
      4. Enable Free Monitoring

      Free Monitoring logs and DB (metrics.metrics collection) will show the initial metrics received at 1-second interval.

      Show
      1. Start Free Monitoring service 2. Start rc5 mongod with Free Monitoring disabled 3. Wait a few seconds 4. Enable Free Monitoring Free Monitoring logs and DB ( metrics.metrics collection) will show the initial metrics received at 1-second interval.

      Description

      The normal Free Monitoring metric interval is 60 seconds, and this is honored by mongod for the POST interval for ongoing metrics. However, when mongod first registers with Free Montoring, it sends a payload of up to 10 metrics that were previously buffered. The interval for these metrics seems to be 1 second, rather than 60 seconds.

      You can see this in the timestamp suffix of the metric _id in the Free Monitoring DB:

      > db.metrics.find({_id: /MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==.*/}, {_id: 1})
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338552006" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338553010" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338554008" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338555011" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338556009" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338557006" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338558006" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338559006" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338560006" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338561006" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338562006" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338622005" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338742010" }
      { "_id" : "MSA0YjdhMWZkOS01NzMyLTQ2NTctYWRjYy03YmRiYjZkMmUxZmIgTlp0OVdDcGh6YVo0bldXSGQ0MUJyeCtLWWxZSFYvVkFxNk9DQncwREwwUEp0WElPeklCdEErSlpPM0l3N2NValpxR0NGa1RyTlNsWkY3SFZPK1pia1E9PQ==-1529338802010" }
      

      Notice that the first batch of timestamps are 1 second apart (although oddly it seems there are 11, not 10?), and then 60 seconds apart.

        Attachments

          Activity

            People

            Assignee:
            mark.benvenuto Mark Benvenuto
            Reporter:
            duncan.armstrong Duncan Armstrong
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: