MongoDB specific errors in Agent Log - Error formatting Database
search cancel

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

Component : APM Agents 2.x

Cause

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: F123889 - Update the supported MongoDB driver versions for Java Agent

Resolution

Fixed in SaaS Agent 23.3.04

For PCF environments, use Java Build Packs Buildpack v59.0 as it has the DX APM agent 23.3.04

Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-apm-agents/SaaS/java-agent/install-the-java-agent/deploy-and-monitor-a-java-application-on-cloud-foundry.html