public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Cc: Matthias Fischer <matthias.fischer@ipfire.org>
Subject: Re: How to handle the new translation method on a live system?
Date: Sun, 29 Nov 2026 17:06:05 +0000 (UTC)	[thread overview]
Message-ID: <4jctpP6VvgzTq9G@michael.haj.ipfire.org> (raw)
In-Reply-To: <05d222be-77fa-47aa-aa03-64d73260f7f0@ipfire.org>

Hi Matthias,

I looked into replacing squid-graph with a telemetryd source. Unfortunately, I cannot make it work in a way that I am happy with. The full investigation is in https://bugzilla.ipfire.org/show_bug.cgi?id=14949, but here is the short version:

* Squid has no command that prints its statistics. `squidclient` used to do this, but it was removed in Squid 7, together with `cachemgr.cgi`. The release notes say to use curl or wget instead.
* The cache manager itself still works. I built Squid 7.8 and `GET /squid-internal-mgr/counters` returns everything we would need (requests, hits, errors, bytes in and out on the client and server side). The default `http_access allow localhost manager` rule is enough.
* The problem is that it is only reachable over TCP on whatever `http_port` is configured. Squid has no UNIX socket for this (we do that for knot-resolver). `http_port /path` is rejected and the only UNIX sockets in the source are for its internal worker IPC.
* All the alternatives need Squid's configuration to be known to telemetryd. Those are parsing `squid.conf`, probing ports, reading `/proc/<pid>/fd` (needs extra privileges) and SNMP. The last way out is parsing `access.log`, which is what squid-graph does and what I wanted to avoid.

I therefore don't want to add a source that guesses, so I have closed the ticket as CANTFIX. If we ever want to revisit this, a dedicated manager-only listener on a fixed localhost port in our generated `squid.conf` would make it a very small source. I would rather not do that just for this.

That means we cannot replace squid-graph with telemetryd right now. If you still want to keep it for the time being, the translation question from your original mail applies to it as before.

Best,
-Michael


  reply	other threads:[~2026-11-29 17:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 10:55 Matthias Fischer
     [not found] ` <4jWKzk20n5zTq0T@michael.haj.ipfire.org>
2026-11-20 16:18   ` Matthias Fischer
2026-11-22 12:50   ` Vincent Li
2026-11-20 16:27 ` Michael Tremer
2026-11-27 17:58   ` Matthias Fischer
2026-11-27 18:01     ` Matthias Fischer
2026-11-28 14:10     ` Michael Tremer
2026-11-28 16:26       ` Matthias Fischer
2026-11-29 17:06         ` Michael Tremer [this message]
2026-11-29 22:19           ` Matthias Fischer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4jctpP6VvgzTq9G@michael.haj.ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    --cc=matthias.fischer@ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox