I don't get it. Do you mean these are the same?
DS_Info{desc="GOT",index="312",name="EC80",exported_namespace="s905"}
DS_Info{index="312",name="EC80",exported_namespace="s905"}
The second metric is missing the label desc.
The label itself is not there. desc="" will not work in this case.
On Tue, May 26, 2020, 4:15 PM Julien Pivotto <[email protected]>
wrote:
> On 26 May 15:59, Arnav Bose wrote:
> > No, not that way. What I mean is there is a possibility that the label
> > itself will be missing. Say the label desc will be completely missing
> from
> > the metric. Instead of 4 labels I will get only 3 labels. I want to
> alert
> > at that time.
>
> Empty label and missing label are the same in this Promql example.
>
> >
> >
> >
> > On Tue, May 26, 2020, 3:54 PM Julien Pivotto <[email protected]
> >
> > wrote:
> >
> > > On 26 May 12:46, Arnav Bose wrote:
> > > >
> > > >
> > > > Hi,
> > > >
> > > >
> > > > I have a metric:
> > > >
> > > >
> > > > DS_Info{desc="GOT",index="312",name="EC80",exported_namespace="s905"}
> > > >
> > > >
> > > > Is there anyway I can alert if any one of these labels go missing.
> Not
> > > the
> > > > metric, just one of the labels.
> > >
> > > Hi,
> > >
> > > Assuming you know the labels:
> > >
> > > DS_Info{desc=""} or DS_Info{index=""} or DS_Info{name=""} or
> > > DS_Info{exported_namespace=""}
> > >
> > > regards
> > >
> > > >
> > > >
> > > > 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/662678d9-b7d0-4d8a-a0d0-c6d0e37fda80%40googlegroups.com
> > > .
> > >
> > >
> > > --
> > > Julien Pivotto
> > > @roidelapluie
> > >
> >
> > --
> > 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/CAJO1_QQRuvN8AYYT-thp_G7jBzcZTARMnqRbd66SyapokBErag%40mail.gmail.com
> .
>
> --
> Julien Pivotto
> @roidelapluie
>
--
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/CAJO1_QQMORmGj-VpcVANdp5u7rzCTu3A%3DV9-SqD%3DjdZu36gX%3DA%40mail.gmail.com.