6 Commits
Author SHA1 Message Date
tiennm99 45a76e8694 fix: bump alloy to v1.16.1 and align CI validator image 2026-05-31 10:41:57 +07:00
tiennm99 82b1d912cd ci: bind alloy smoke test to real port (clustering needs non-zero) 2026-04-25 19:13:22 +07:00
tiennm99 2bb87550c1 ci: make alloy smoke-test robust to runtime errors
Previous step failed in CI because the bare alloy container had no
/var/log/journal, no docker.sock, etc., so loki.source.journal +
discovery.docker exited the process — and --rm wiped the container
before logs could be inspected.

Now: drop --rm, mount the same host paths the prod compose uses, plus
an empty /var/log/journal stand-in. Capture logs unconditionally and
fail only on config-level patterns ('unknown component',
'undefined reference', 'syntax error', etc.). Runtime/component
failures against dummy endpoints are tolerated.
2026-04-25 19:12:05 +07:00
tiennm99 638d2f3dd0 fix: address review findings (network ns, journal path, CI semantics)
- network_mode: host so prometheus.exporter.unix reports real host
  interfaces (eth0...) rather than the alloy container's veth pair.
- loki.source.journal: set path = "/var/log/journal" explicitly so it
  doesn't silently fall through to /run/log/journal on volatile-journal
  hosts.
- cadvisor keep-list: add container_memory_working_set_bytes (drives
  several panels on the standard Docker dashboard).
- Drop /dev/kmsg device + extra_hosts:host.docker.internal — neither is
  needed by the current keep-lists, and host-network mode makes the
  extra_hosts entry meaningless.
- CI: extend Alloy validation beyond `fmt` (syntax-only) by booting
  alloy with the embedded config and asserting it stays running, which
  catches bad component refs / wrong arg names that fmt accepts.
- README: refresh Mounts table + Security note to match.
2026-04-25 19:09:49 +07:00
tiennm99 a6ae53c383 ci: add REMOTECFG_* dummy vars so compose config passes
The compose file gained three new :?required guards
(REMOTECFG_URL/ID/USER) that the validate workflow was not exporting.
2026-04-25 10:51:16 +07:00
tiennm99 0f9200b181 ci: add mit license + validate workflow
workflow runs on push to main and all prs:
- docker compose config -q (yaml + env interpolation)
- yq extract embedded alloy config
- alloy fmt (syntax check)
2026-04-24 09:54:03 +07:00