Probably not - it just needs to keep a count of the line number for each metric. I expect a PR implementing this would be considered favourably.
However, are you generating your metrics via a standard client library, or ad-hoc? It might be worth doing better validation at the client side, so that bad metrics are caught before being emitted. On Friday, 12 November 2021 at 16:06:51 UTC mspr...@us.ibm.com wrote: > Would it be so hard to make the error message include the position where > the problem was? > > Thanks, > Mike > > promethe...@googlegroups.com wrote on 11/12/2021 01:06:11 AM: > > > From: "易Richard" <ricyy...@gmail.com> > > > > To: "Prometheus Users" <promethe...@googlegroups.com> > > Date: 11/12/2021 01:06 AM > > Subject: [EXTERNAL] [prometheus-users] Prometheus collect the metric fail > > Sent by: promethe...@googlegroups.com > > > > > Prometheus collect endpoint fail. The error msg is "expected equal, > > got INVALID" I checked the stderr output but didn't find any clue > > > about the error. The metric content from the endpoint fail to > > collect seems normal. > > > > Prometheus collect endpoint fail. The error msg is "expected equal, > > got INVALID" > > I checked the stderr output but didn't find any clue about the error. > > > > > [image removed] > > > > > The metric content from the endpoint fail to collect seems normal. > > Do I need upload the whole metric content cause it's too long? > > > -- > > 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-use...@googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/ > > d/msgid/prometheus-users/ > > a9b67778-4657-4dd9-9a01-044094f7bc3an%40googlegroups.com. > > -- 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/fb5854b7-58bc-4b04-b950-110cfd01649en%40googlegroups.com.