Unable to decode response from prometheus endpoint

I am using metricbeat but getting error like:

Error fetching data prometheus.collector: unable to decode response from prometheus endpoint: error making http request Get http://testserver:9104/metrics: net:/http: request cancelled (Client.Timeout exceeded while awaiting headers)

It looks like the above url ends with ":" which is causing the issue.

My config details are below:
module: Prometheus
period:20s
hosts:['testserver:9104']
metric_path: /metrics

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.