Thanks very much.
I query data from anthor metrics system and handle it to prometheus format.
Like my comment, the `app_version{version=a} ` is in changing, there will
generate new label value and the old label value may not used anymore. But
it still in query result.
在2022年8月12日星期五 UTC+8 17:14:11<Stuart Clark> 写道:
> On 09/08/2022 08:56, Hello Wood wrote:
> > Hi, I using Prometheus to collect Spring Boot service metrics in Java.
> > But I found a problem that data still exsit after pull, that made the
> > instant data is not correct.
> >
> > Like at now there has one label like 'app_version{version=a} 100',
> > then the metrics updated, and add a new label value b, the metrics
> > come to 'app_version{version=a} 50' and 'app_version{version=b} 50';
> > Then, label a no longer update, and metrics come to
> > 'app_version{version=b} 100'.
> >
> > When I pull metrics form Spring Boot service, the metrics is
> > 'app_version{version=a} 50' and 'app_version{version=b} 100'. But
> > expect data should be 'app_version{version=b} 100' only.
> >
> > How could I fix this issue? Thanks.
>
> I think possibly you aren't using labels in the way expected.
>
> Labels are used to "slice & dice" the data, so for example to be able to
> see which specific HTTP response code was returned from a web call, etc.
>
> What is the value of the metric app_version supposed to signify?
>
> --
> 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/4dfa9688-f79f-4de8-8fca-214ab9bb8c59n%40googlegroups.com.