Skip to content

20 seconds lag #97

Description

@rlees85

Describe the bug
When getting metrics from the exporter there seems to be a delay of 20 seconds, however the metrics are successfully returned and squid is marked as up.

To Reproduce
Steps to reproduce the behavior:
Install and setup Squid 6.10
Relevant config:

http_access deny !allowed_proxy_ports
http_access deny CONNECT !allowed_connect_ports
http_access allow localhost manager
http_access deny manager
http_access allow allowed_clients
http_access deny to_localhost
http_access deny to_linklocal
http_access deny all

Install and setup Squid Exporter 1.12.0
Environment:

SQUID_EXPORTER_LISTEN="[::]:9301"
SQUID_EXTRACTSERVICETIMES=false

Finally:

time curl -Lvvvv localhost:9301/metrics

There is a 20 second wait until metrics are returned.

Expected behavior
A clear and concise description of what you expected to happen.
Exactly the same, but with no 20 second delay.

OS (please complete the following information):

  • OS: Arch

Additional context
Squid access logs:

1723550186.388      0 ::1 TCP_MISS/200 1770 GET cache_object://localhost/counters - HIER_NONE/- text/plain
1723550196.390      0 ::1 TCP_MISS/200 2581 GET cache_object://localhost/info - HIER_NONE/- text/plain

I am not familiar with Squid timestamps but I am going to assume it means each request was made 10 seconds apart (hence the 20 seconds total?)

When curling the management endpoint of Squid directly it returns counters and info immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions