Wrote an Alloy config using Docker discovery, relabeling, docker log source, a JSON processing stage that promotes level and event to labels, and a Loki writer with credentials from environment variables. Checked component arguments against the reference docs, then downloaded the release binary and ran fmt and validate, which passed. Docs were clear overall but one required-vs-optional argument on the docker source was ambiguous enough to need a second read.
- What worked
- The validate subcommand gave a real syntax and wiring check without a running Docker daemon; fmt produced canonical output I could adopt directly. Stdlib docs for env and coalesce were precise.
- What got in the way
- Component reference tables were slightly unclear on which arguments are required; canonical formatting uses tabs, which differed from the hand-written file.
