graylog-labs / graylog-plugin-mongodb-profiler

Graylog input plugin that reads MongoDB profiler data
https://www.graylog.org/
GNU General Public License v3.0
18 stars 10 forks source link

Upgrade to Graylog 2.0 #6

Closed edmundoa closed 8 years ago

edmundoa commented 8 years ago

As the changes involve updating Mongo Java Driver, and I'm not too familiar with it, I'd rather have someone reviewing the changes before pushing them out.

MongoClient's getConnection() method was deprecated in version 2, and got removed in version 3. We were using it, I presume, to check if the close() method was closed. I couldn't find anything to replace it, even though this thread was helpful. Instead, I am relying on an AtomicBoolean for that now.

joschi commented 8 years ago

LGTM. :+1: