Skip to content

Could not fetch metrics from squid instance unexpected EOF #80

Description

@sarakumap

Describe the bug
getting following error with squid version 5.7 with require-proxy-header set.
squid_exporter is failing to read squid metrics and return the following error:

systemctl status squid_exporter

Aug 01 14:50:03 xxxx.xx.xx.local squid-exporter[3883]: 2023/08/01 14:50:03 Could not fetch metrics from squid instance: unexpected EOF

when I looks at the squid log I see the following error. May be this one is causing this error.

error:transaction-end-before-headers NONE/0.0" 0 0 NONE_NONE:HIER_NONE

logs

curl localhost:19101 where squid exporter is listening. it is missing the squid metrics

HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.

TYPE promhttp_metric_handler_requests_total counter

promhttp_metric_handler_requests_total{code="200"} 13214
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0

HELP squid_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which squid_exporter was built.

TYPE squid_exporter_build_info gauge

squid_exporter_build_info{branch="HEAD",goversion="go1.13.8",revision="c60ca5a56e34783af00b8d7f959bc18d0d6aefa6",version="1.8.3"} 1

HELP squid_up Was the last query of squid successful?

TYPE squid_up gauge

squid_up{host="localhost"} 0

To Reproduce
Steps to reproduce the behavior:
make a request to destination via squid pproxy using loadbalancer
check the squid exporter log and notice the error:

Expected behavior
A clear and concise description of what you expected to happen.

OS (please complete the following information):

  • OS: Centos
  • Version 7

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions