Create a metric name as you wanted and add labels to it
https://github.com/prometheus/client_java#labels
On Tuesday, May 19, 2020 at 4:17:00 PM UTC+7, Nidhi Sharma wrote:
>
> Thanks for replying. Can we do this by Mbeans and JMX ? I can create
> Mbeans and register it in my application but I dont know how to capture the
> output in Prometheus time series format. For ex :
> Product_version{product="SomeProduct",version="2.9.1"}
>
>
> On Tuesday, May 19, 2020 at 2:09:51 PM UTC+5:30, Vu Tuan Dat wrote:
>>
>> this can help https://github.com/prometheus/client_java
>>
>> On Tuesday, May 19, 2020 at 1:32:10 PM UTC+7, Nidhi Sharma wrote:
>>>
>>> Hi, I have a web app running on tomcat. There is a hello resource (REST
>>> API) to check the health of the app. Output if this resource gives the
>>> version of the app. I want output of this resource to be captured as a
>>> metric and pulled by Prometheus. Please help on how can I proceed.
>>>
>>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/5c106729-690f-43bf-ad88-abfbc1ba775a%40googlegroups.com.