Hey, I'm working on a project that implements OpenTelemetry metrics on our 
Jenkins and one problem that we found out is the metrics related to sh are 
pushed to Prometheus using just sh as reference but we want to set the 
command executed by sh as label to be easier to identify them.

Some options available are:

   1. Write a wrapper to set the labels dynamically on sh based on the 
   command;
   2. Set label on each sh call.
   
They work but I want something that could be implemented without need to 
change all the sh calls inside of the code.

Is there any way to implement this? 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins 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/jenkinsci-users/c05463f3-d9c1-4b4f-a6d0-3ccf9c993f45n%40googlegroups.com.

Reply via email to