Skip to content

Overhaul, update, reduce logging#5

Open
isobit wants to merge 2 commits into
masterfrom
isobit/2026-04-13/update
Open

Overhaul, update, reduce logging#5
isobit wants to merge 2 commits into
masterfrom
isobit/2026-04-13/update

Conversation

@isobit

@isobit isobit commented Apr 13, 2026

Copy link
Copy Markdown

Overhauls dockerdog to modernize the codebase and simplify configuration.

Modernize dependencies and build

  • Switch from vendored dependencies to Go modules (go.mod/go.sum)
  • Replace fsouza/go-dockerclient with the official docker/docker client library
  • Replace flag with isobit/cli for argument parsing
  • Replace the JSON config file with repeatable -a CLI flags for mapping Docker event attributes to StatsD tags
  • Replace the Docker-based build (Dockerfile) with a static binary build via Makefile
  • Add fmt, lint, test, and check Make targets

Simplify event handling

  • Hardcode the set of tracked container/image events and their per-event attribute tags (e.g. exitCode on die, signal on kill) instead of requiring a JSON config file
  • Use the Docker events API server-side filter so only relevant event types are received
  • Move the "ignoring unknown event" log message behind a -debug flag to reduce noise in production

Update README

  • Replace the plain event listing with a table showing each metric and its tags
  • Document the new -a flag for mapping arbitrary event attributes to tags

isobit and others added 2 commits January 19, 2026 13:57
- Use go modules and remove vendoring
- Replace github.com/fsouza/go-dockerclient with the official docker
  client SDK
- Use isobit/cli instead of flag for parsing, add more options for
  configuring attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant