On 21.10.20 06:56, akshay sharma wrote: > > I've written a exporter in go, where i'm exposing the metrics on http port > 8999. > While doing curl from remote machine able to see the metrics but when trying > to > see in prometheus getting below error. > remote_read: error reading response: snappy: corrupt input > > In prometheus i've added remote_read configuration as below > remote_read: > > • url: "http://xxx.xx.xx.xxx:8999/metrics"
`remote_read` is an advanced (and EXPERIMENTAL) feature, and has nothing to do with scraping metrics. What you need is a `scrape_config`, see https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config -- Björn Rabenstein [PGP-ID] 0x851C3DA17D748D03 [email] [email protected] -- 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/20201103214724.GU3373%40jahnn.

