Commit Graph
125 Commits
Author SHA1 Message Date
tiennm99 ca22737dfb docs: add readme with quick-start, multi-host pattern, security posture, free-tier budget 2026-04-24 09:49:34 +07:00
tiennm99 f5955a82f0 refactor: simplify for standalone single-host deployment
- merge discovery.relabel "metrics" into prometheus.relabel "filter"
  (instance label + keep-filter in one component)
- move logs 'instance' label to loki.write external_labels (DRY, one source)
- drop alloy container log exclusion (~500kb/day trivial; adds visibility
  into alloy's own health via loki)

net: -5 lines, one fewer component, same functionality
2026-04-24 09:43:32 +07:00
tiennm99 b055d4f66b refactor: tighten filters, add missing metrics + journal labels
correctness:
- drop dead ALLOY_HOSTNAME env passthrough (alloy uses constants.hostname)
- tighten netdev regex so iface names like 'lore0' no longer match 'lo'
- widen alloy-container drop to /alloy.* (catches renamed variants)

more info for same cost (~80 extra series, still ~1.6k of 10k):
- add MemFree, disk IOPS (reads/writes_completed), disk saturation
  (io_time_weighted), inode tracking (filesystem_files, _files_free),
  network drops, container working_set memory, container_last_seen,
  machine_scrape_error
- add journal unit + level labels (log querying by service/severity)
- docker discovery refresh 60s -> 5s (fast pickup of new containers)

efficiency:
- loki batch_wait=5s, batch_size=1MiB (~5x fewer push requests)

layout:
- drop redundant expose: [12345] (other containers can reach it anyway)
2026-04-24 09:27:57 +07:00
tiennm99 d0fb74ca58 feat: initial single-container alloy setup for grafana cloud free
- node_exporter (host) + cadvisor (containers) via one scrape job
- docker container logs + systemd journal to loki
- filter regex keeps only metrics needed for standard dashboards
- sized for grafana cloud free tier (~10k active series cap)
- shell env driven (no .env file); fail-fast on missing vars
- least-privilege: cap_drop all, no privileged, no pid host, ui not published
2026-04-24 09:21:29 +07:00
tiennm99 baac61cd70 feature: init 2025-04-07 12:44:18 +07:00
Tien Nguyen Minh b90541ac8b Initial commit 2025-04-07 12:39:46 +07:00
tiennm99 a420279f2b Update docker-compose.yml 2025-03-25 21:58:42 +07:00
tiennm99 7efe3c00ce Update docker-compose.yml 2025-03-25 20:58:52 +07:00
tiennm99 10c8824b4d feat: use docker stable image 2025-03-24 21:18:44 +07:00
tiennm99 fc766b2c49 feat: remove config 2025-03-24 21:15:41 +07:00
tiennm99 a3c1ea7cc3 feat: update config 2025-03-24 21:06:03 +07:00
tiennm99 292770e716 feat: init 2025-03-24 20:56:09 +07:00
Tien Nguyen Minh 9a10d42a43 Initial commit 2025-03-24 20:51:11 +07:00
tiennm99 03fbd4d3a2 Create docker-compose.yml 2025-03-15 20:43:33 +07:00
Tien Nguyen Minh cb4052d445 Initial commit 2025-03-15 20:37:50 +07:00
tiennm99 c1b902e455 feat: init 2025-03-07 00:42:01 +07:00
Tien Nguyen Minh ad4db2e29a Initial commit 2025-03-07 00:40:52 +07:00
Tien Nguyen Minh 2d0982ec55 Update README.md 2024-05-03 16:38:43 +07:00
tiennm99 c5567c623e [Init] 2023-12-23 08:15:16 +07:00
Tien Nguyen Minh 3426cf1da6 Initial commit 2023-12-23 07:29:50 +07:00
tiennm99 0fad91affd [Fix] run script 2023-11-13 14:34:08 +07:00
tiennm99 1320a67a15 Update README.md 2023-11-11 18:22:57 +07:00
tiennm99 416407d8ac chmod +x run.sh 2023-11-11 18:07:53 +07:00
tiennm99 2746ddd730 [Init] 2023-11-11 17:30:58 +07:00
Tien Nguyen Minh 1b24169d58 Initial commit 2023-11-11 16:50:15 +07:00