How container auto-discovery works with the Docker SDK and client-go

go dev.to

A monitoring tool can find your containers on its own, with no list of targets to write. There is no magic involved: it relies on the Docker and Kubernetes APIs, which already know everything about what is running. This post walks through how Maintenant, a Go monitoring tool, does it with the Docker SDK for Go and client-go. Runtime detection On startup, the tool runs a detection sequence: If the MAINTENANT_RUNTIME environment variable is set, it forces the mode Otherwise, if KUBER

Read Full Tutorial open_in_new
arrow_back Back to Tutorials