Hi Everyone,
I am setting up monitoring for my bamboo Job(CI/CD tool). For which I am 
using a nodeJS exporter ( I am new to it) which returns the following 
feilds:
------------------------------------------------------------------------------------------------------------------------------------
*# HELP build_number build number for plan.*
*# TYPE build_number gauge*
*build_number{planName="Some_name"} 2839*

*# HELP successful_test_count number of test cases passed for the build 
number.*
*# TYPE successful_test_count gauge*
*successful_test_count{planName="* *Some_name*  *"} 3*

*# HELP failed_test_count number of test cases failed for the build number.*
*# TYPE failed_test_count gauge*
*failed_test_count{planName="* *Some_name*  *"} 0*

*# HELP test_count_percentage Percentage = (success/(success + 
failure))*100 *
*# TYPE test_count_percentage gauge*
*test_count_percentage{planName="* *Some_name*  *"} 100*
----------------------------------------------------------------------------------------------------------------------------------------------

as this plan is set to be built every 5 mins therefore I have set my 
Prometheus to scrape this endpoint every 5 mins.  
but in real case some times the plan takes more than 5 mins to build , 
hence the data updated after 5 mins so my Prometheus shows the duplicate of 
the same metric in grafana

*What i wished*
I wanted to see results based on  *build_number{planName="* *Some_name*  *"} 
2839*   which will be always unique and keep on increasing.
How can I achieve this so that I can see only unique values for a metric?
or how to make a metric value unique? either in promethues.yml or exporter

Thanks

-- 
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/52fecf1a-bea8-462c-bf7c-b3d939e820d7n%40googlegroups.com.

Reply via email to