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