ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

MongoDB specific errors in Agent Log - Error formatting Database

book

Article ID: 214199

calendar_today

Updated On:

Products

APM CA Application Performance Management (APM / Wily / Introscope) DX Application Performance Management

Issue/Introduction

DX APM Agent Ver 20.9.0.13
MongoDB Version 4

The agent log is populated with the following error, the monitoring appears to be working but the error is of concern

2021-02-23T08:17:16.505+00:00 [APP/PROC/WEB/0] [ERR] 2/23/21 08:17:16 AM UTC [ERROR] [IntroscopeAgent.SpringMongo] Mongo DB might be down, Error formatting Database : Error looking up method getLegacyDb on class org.springframework.data.mongodb.core.SimpleMongoClientDatabaseFactory with parameters

 

Environment

Release : 20.2

Component : APM Agents

Resolution

The error message is a result of a driver version incompatibility with the APMIA MongoDB monitoring extension invoking Spring Data MongoDB API org.springframework.data.mongodb.MongoDbFactory.getLegacyDb() method that is not supported by the MongoDB version used by the application. Monitoring will still take place but the DB name is not identified and the generic name MongoDB will be used.

 

AN enhancement has been raised to better handle this situation