[Proposal] A Squid Client Info gauge
Hi,
I have a use-case very similar to the one described here 0
In my scenario, I need to use a client_ip from the squid logs in concert with a prometheus metrics query within the same Grafana panel, which is currently impossible as described in the discussion 0 and with some more evidence of the issue here 1.
In order to, within the context of squid-exporter, eliminate the need for a mixed-datasource/dashboard-datasource query 2 entirely, I want to propose an exporter of a squid_client_info gauge quite similar in its properties to kube_pod_info 3 exported by kube-state-metrics 4.
This gauge must contain the HTTP source IP, but it may also be useful to add some other other useful HTTP information such as user-agent and/or response-code.
Your thoughts?
0: https://github.com/grafana/grafana/discussions/68516
1: https://github.com/grafana/grafana/issues/63866#issuecomment-1561154395
2: https://grafana.com/docs/grafana/latest/datasources/#special-data-sources
3: https://github.com/kubernetes/kube-state-metrics/blob/main/docs/pod-metrics.md?plain=1#L6
4: https://github.com/kubernetes/kube-state-metrics
squid exporter is currently relying on cache manager to export metrics. while I see the utility of this new metric(s), iiuc, it requires processing of the squid logs, which is a big project by itself. If you can invest in building this new feature and proposing the PR I'll gladly review the change.