First try a couple of simple things: curl http://10.70.20.10:8080/metrics -o metrics.txt grep INVALID metrics.txt
If the grep doesn't find anything, then examine the file manually for structural errors. Maybe you have a label name with an invalid character? The valid characters in label names are documented here <https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels>. Or even a label or value which has a newline in it? foo{bar ="baz"} 123 You can also try a binary chop: - split the file metrics.txt into two halves - serve one half via a webserver (e.g. apache) as a static file - scrape this via prometheus - if there's no error, try the second half - when you find the bad half, repeat the process (split that piece into two) -- 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/622fe435-2ad0-4379-8d71-2b00abe14141n%40googlegroups.com.

