# PMM2.1 can add costom prometheus job?

**URL:** https://forums.percona.com/t/pmm2-1-can-add-costom-prometheus-job/7341
**Category:** PMM 2.x
**Created:** [December 11, 2019, 2:59am UTC](https://forums.percona.com/t/pmm2-1-can-add-costom-prometheus-job/7341 "2019-12-11T02:59:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AznableMiao](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/aznablemiao/32/1285_2.png) [@AznableMiao](https://forums.percona.com/u/AznableMiao)
#### Post date: [December 11, 2019, 2:59am UTC](https://forums.percona.com/t/pmm2-1-can-add-costom-prometheus-job/7341/1 "2019-12-11T02:59:03Z")

</div>

I’m new to pmm.  
I set up pmm for monitoring mysql,and it work well.  
Now, i want to use prometheus to monitoring my spring(java) application.My application already have an endpoint for prometheus.How can i add it to pmm?

---

<div class="post-metadata">

### Author: ![Stateros](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/stateros/32/2490_2.png) [@Stateros](https://forums.percona.com/u/Stateros)
#### Post date: [December 13, 2019, 6:06am UTC](https://forums.percona.com/t/pmm2-1-can-add-costom-prometheus-job/7341/2 "2019-12-13T06:06:23Z")

</div>

Hello, I am not 100% sure but from my point of view it’s not a good idea. Pmm prometheus is cleaned up from time to time, and it has retention period for metrics. For monitoring your app I would rather to use separate Prometheus.
