Skip to content

Start PromEx before the repo - #277

Merged
ericmj merged 2 commits into
mainfrom
promex-before-repo
Jul 27, 2026
Merged

ericmj merged 2 commits into
mainfrom
promex-before-repo

Conversation

@ericmj

@ericmj ericmj commented Jul 27, 2026

Copy link
Copy Markdown
Member

Bob's Ecto dashboard has been empty since it went up. The repo dropdown reads its options from bob_prom_ex_ecto_repo_init_status_info, which PromEx's Ecto plugin builds from the telemetry event a repo emits once, as it starts. PromEx was supervised after the repo, so it missed the event and never exported the metric. With no option to select, every panel filtered on an empty repo and rendered nothing.

hexpm and hexpm_billing already start PromEx first, which is why their Ecto dashboards work.

ericmj added 2 commits July 26, 2026 20:27
The Ecto plugin builds its repo, pool size and timeout metrics from the
telemetry event a repo emits once, as it starts. PromEx started after the
repo, missed it, and never exported bob_prom_ex_ecto_repo_init_status_info,
which is where the Ecto dashboard's repo dropdown gets its options. With no
option to select, every panel on that dashboard filtered on an empty repo
and rendered nothing.
Process.exit only sends the signal. The runner holds its registered name
until it has actually terminated, so the next test's start_link could race
it and lose with {:error, {:already_started, pid}}. CI hit this on one of
two runs of the same commit.
@ericmj
ericmj merged commit c95105b into main Jul 27, 2026
4 checks passed
@ericmj
ericmj deleted the promex-before-repo branch July 27, 2026 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant