You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* export eth-docker version
* Scope Alloy Docker discovery to this install's own Compose project
* update comment
* Read eth-docker version from README.md instead of nearest git tag
* add COMPOSE_PROJECT_NAME to .env and bump version
* Move version metric out of ./.eth into ./prometheus
* Make Alloy project-name scoping opt-in via ALLOY_FILTER_BY_PROJECT_NAME
Replace the automatic COMPOSE_PROJECT_NAME pinning with an opt-in boolean.
The old approach hijacked Compose's own COMPOSE_PROJECT_NAME and set it for
everyone, risking broken volume references and changing the default
scrape-all behavior.
ALLOY_FILTER_BY_PROJECT_NAME (default false) now leaves collection
unchanged. When true, ethd resolves this install's project name read-only
via `docker compose config` and writes it to ALLOY_PROJECT_NAME, which
config.alloy uses to scope Docker discovery. Alloy has no conditional
expressions, so the decision is made in ethd and coalesced to ".*" when
empty. COMPOSE_PROJECT_NAME is never touched.
Also drop the version-metric write from start(); it belongs only in
update(), where the version can actually change.
* pr comments: read env var into __value, use ${__project_name}
* Read NODE_EXPORTER_COLLECTOR_MOUNT_PATH into __value, not a local
* Update ethd
* Update ethd
* Update ethd
* Update ethd
---------
Co-authored-by: erl-100 <erl-100>
Co-authored-by: Yorick Downe <71337066+yorickdowne@users.noreply.github.com>
# Set true to scope Alloy collection to this install's own containers, needed for a correct Eth Docker version metric when running multiple instances on one host. false scrapes every container
566
+
ALLOY_FILTER_BY_PROJECT_NAME=false
565
567
# And the Docker root so promtail scrapes logs from the right location. This is updated by ethd
566
568
DOCKER_ROOT=/var/lib/docker
567
569
# Docker socket location. Updated by ethd on Ubuntu/Debian; on macOS set to <home-dir>/.colima/default/docker.sock if using Colima
568
570
DOCKER_SOCK=/var/run/docker.sock
571
+
# This install's Compose project name, resolved by ethd when ALLOY_FILTER_BY_PROJECT_NAME is true. Updated by ethd - do not set by hand
0 commit comments