On Monday, April 13, 2020 at 6:52:32 AM UTC, Stuart Clark wrote:
>
> On 13/04/2020 07:15, Vidur wrote:
>
>
>  
>>
>>>  
>>>>
>>>>> *And Gauge are created real time with different request values , so i 
>>>>> cannot make them static.*
>>>>>
>>>>
>>>> Metric names in direct instrumentation should never be procedurally 
>>>> generated. Most likely you should be using a label here, not a metric name.
>>>>
>>>
>>> Are you suggessting me to use labels to distinguish between different 
>>> type of metric.
>>> could you share more info on direct instrumentation & other types. 
>>>
>>
>> Use a normal static gauge and expose it out over http. 
>>
>
> But there are dynamic labels for every metric type , so i think keeping a 
> normal static gauge wont solve this problem.
>  
>
> What do you mean by dynamic labels?
>
> While the values of labels can change during the application run (but 
> should be chosen carefully to keep cardinality in check) the actual label 
> names should be fixed for a particular metric.
>
>
>  I mean different labels for different metric only , but can a single 
gauge instance be used for that.
As the metrics can be created during application run with its own set of 
labels.

> Stuart Clark
>
>

-- 
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/906b5f86-08e4-45f7-aba6-142656fbfa23%40googlegroups.com.

Reply via email to