Way to Convert data in Prometheus format

40 views
Skip to first unread message

Rahul Patil

unread,
Apr 28, 2021, 3:45:43 AM4/28/21
to Prometheus Users
Hi Team,

I am using a spring actuator in a simple spring application (Non-spring boot). And I need to send the data of spring actuator to Prometheus in Prometheus format

How I can achieve this?
Is there any converter that can convert spring actuator data in Prometheus format?

Thanks,
Rahul Patil

Julien Pivotto

unread,
Apr 28, 2021, 5:23:59 AM4/28/21
to Rahul Patil, Prometheus Users
Actuator has native support for Prometheus.

You will need to enable it and then hit
<your_app>/actuator/prometheus

In prometheus server, it means setting the following parameter in your
scrape job config

metrics_path: /actuator/prometheus

>
> Thanks,
> Rahul Patil
>
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3c60f7c4-8acc-4b27-8eb2-8b64636a36e5n%40googlegroups.com.


--
Julien Pivotto
@roidelapluie

Rahul Patil

unread,
Apr 28, 2021, 9:28:05 AM4/28/21
to Prometheus Users
Thanks Julien Pivotto ,

Does Is Actuator have native support for Prometheus in Spring (Not Spring boot)?

Julien Pivotto

unread,
Apr 28, 2021, 9:39:40 AM4/28/21
to Rahul Patil, Prometheus Users
On 28 Apr 06:28, Rahul Patil wrote:
> Thanks Julien Pivotto ,
>
> Does Is Actuator have native support for Prometheus in Spring (Not Spring
> boot)?

I do not know the answer for that.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/77a19385-d81f-4b3d-83d3-1ebe021e08bfn%40googlegroups.com.


--
Julien Pivotto
@roidelapluie
Reply all
Reply to author
Forward
0 new messages