Here is a set of correct metrics
cat metrics.prom
# HELP http_requests_total The total number of HTTP requests.
# TYPE http_requests_total counter
http_requests_total{method="post",code="200"} 1027 1395066363000
http_requests_total{method="post",code="400"} 3 1395066363000
cat metrics.prom | promtool check metrics
Then it is supposed to be compressed by snappy as the manual said
The read and write protocols both use a snappy-compressed protocol buffer encoding over HTTP.
So,
snzip metrics.prom
Then
but unfortunately, the result is
snappy: corrupt input
Why is it corrupt?
gives perfectly fine result.