You can use promtool for this:
```
cat metrics.txt | promtool check metrics
error while linting: text format parsing error in line 444: unexpected end
of label value "persistent://public/default/"
```
these metrics have values with quotes in them, there's a several:
pulsar_subscriptions_count{cluster="pulsar-cluster-zk-1",namespace="public/default",topic="persistent://public/default/"qwerdf""}
1.0 1636946709604
pulsar_producers_count{cluster="pulsar-cluster-zk-1",namespace="public/default",topic="persistent://public/default/"qwerdf""}
0.0 1636946709604
Dan
On Monday, November 15, 2021 at 11:49:46 AM UTC+2 Brian Candler wrote:
> > As for the binary chop method, it's really a bit complicated....
>
> I'm not going to do it for you.
>
> If this is broken metric output from pulsar, then I suggest you take your
> problem to the pulsar mailing list. I suggest you'll likely get a quicker
> response if you can help them by proving which metric(s) are invalid, which
> means doing the binary chop.
>
--
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/0c4ac386-1797-48e0-b5c5-38658413ccb5n%40googlegroups.com.