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.


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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/5f251bbb-6da5-e657-f677-f65c5aa9f805%40Jahingo.com.

Reply via email to