RuntimeTools / appmetrics

Node Application Metrics provides a foundational infrastructure for collecting resource and performance monitoring data for Node.js-based applications.
https://developer.ibm.com/open/node-application-metrics/
Apache License 2.0
977 stars 126 forks source link

Documentation: MongoDB probe type changed from `mongo` -> `mongodb` #563

Open dm03514 opened 5 years ago

dm03514 commented 5 years ago

I tried to disable mongo probe data on a super simple web app but noticed mongo probe data was still being surfaced:

    appmetrics.disable('mongo');

    monitoring.on('mongo', (data) => {
      console.log('mongo');
      console.log(data);
    });

  app.get('/', (req, res) => {
    db.collection('test1').find({}, (err, result) => {
      res.send('Hello World!');
    });
  });

Updating the disable to mongodb works as expected. I was wondering if this was the case across versions?