Help with Application and Endpoint Monitoring for Java 8 + Spring 4.1.6 (WAR on WildFly 9) in Prometheus/Grafana

Hi all,

We are using Prometheus v2.47.2 and Grafana v10.2.3 in an AWS environment with standalone and autoscaling servers. Currently, we successfully monitor CPU, memory, and JVM metrics, but we are now trying to set up Application and Endpoint Monitoring (APM) for our apps.

Our Setup:
Application: Java 8 with Spring 4.1.6 (WAR deployment on WildFly 9)
Spring Boot apps: Using Actuator & Micrometer for metrics
Prometheus version: 2.47.2
Grafana version: 10.2.3
Issues Faced:
Lack of documentation on monitoring Spring MVC applications (WAR files) deployed on WildFly 9.
How can we expose application-level metrics (e.g., request latency, error rates) for a non-Spring Boot app?
Does Micrometer support WAR-based Spring 4 apps? If not, what are the alternatives?
For Spring Boot apps (JAR), are there additional configurations required for Actuator and Micrometer to capture detailed APM metrics?
What We’ve Tried:
Successfully monitoring CPU, Memory, and JVM metrics using Prometheus.
Added Spring Boot Actuator + Micrometer but only getting default metrics (not detailed APM data).

Can someone Please help about this issue?