Daniel Swarbrick

Results 26 issues of Daniel Swarbrick

Group _all_ Linux-specific zfs collector code in the already-existing zfs_linux.go, and move arch-agnostic `init()` function out of arch-specific files.

**Describe the bug** The TestReadFromSquid test case fails intermittently (especially on slower hosts, such as low-powered ARM systems) due to race condition in the goroutine which occasionally tries to read...

help wanted

Go net package's net.InterfaceByIndex fetches the _entire_ interface table behind the scenes, despite us specifying the interface index that we are interested in. This results in an exponential amount of...

Some users have reported cases of systemd "predictable network interface naming" apparently also renaming the HCA device. This means we can no longer make assumptions about which counter(s) should be...

Drop obsolete `cache_mgr://` URI support, which will be removed in Squid 7. Implement support for `squid-internal-mgr` endpoint support via HTTP(S). Fixes: #100 Obsoletes: #99

The custom readLines() function was doing nothing that could not more simply be achieved with a bufio.Scanner. There was also no obvious need to run the readLines() function in a...

According to [Squid documentation](https://wiki.squid-cache.org/Features/CacheManager/CacheObjectScheme), the `cache_object://` URI scheme is deprecated. Squid 6.3 accidentally removed support for legacy cache_object URLs, but Squid 6.4 reinstated support for them (https://github.com/squid-cache/squid/pull/1475), at least for...

Refactor and simplify the `get()` function, using some built-in types like `http.Header` to make the code clearer. Also check for errors when writing to `net.Conn`. Change `Headers` string slice in...

Add a minimal .golangci.yml config and address the most obvious lint warnings.