# Spring Batch - Micrometer not picked up by apm java agent

**URL:** https://discuss.elastic.co/t/spring-batch-micrometer-not-picked-up-by-apm-java-agent/341969
**Category:** Elastic Observability
**Created:** [August 30, 2023, 10:09am UTC](https://discuss.elastic.co/t/spring-batch-micrometer-not-picked-up-by-apm-java-agent/341969 "2023-08-30T10:09:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![anderss](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anderss](https://discuss.elastic.co/u/anderss)
#### Post date: [August 30, 2023, 10:09am UTC](https://discuss.elastic.co/t/spring-batch-micrometer-not-picked-up-by-apm-java-agent/341969/1 "2023-08-30T10:09:27Z")

</div>

I have a spring batch application with the actuator included. I want to expose the standard spring.batch Micrometer metrics, however I cannot get the APM agent to pick up the data from my MeterRegistry.

When looking at the output from LoggingMeterRegistry I can clearly see that all metrics are present in Micrometer, but they are not published to Elastic.

APM agent manages to publish some basic JMX stuff to Elastic, but I cannot see any metrics.

My project uses:  
Spring Boot/batch 3.1.1  
apm-agent-attach 1.42.0  
apm-agent-api 1.42.0

Any help here would be greatly appreciated. Let me know if I can provdide additional information.

Best regards,  
Anders
