Skip to content

Parametrize metrics transmitter path. - #3100

Open
3405691582 wants to merge 1 commit into
google:mainfrom
3405691582:no_xmit
Open

Parametrize metrics transmitter path.#3100
3405691582 wants to merge 1 commit into
google:mainfrom
3405691582:no_xmit

Conversation

@3405691582

Copy link
Copy Markdown
Collaborator

Metrics are only written to disk when the transmitter binary exists. We only check a static path under /usr, the package destination. Thus, checking to see if metrics have been written to disk is only possible when the package is installed, and this requires root.

For testing purposes, we might want to have metrics written to disk but without having the entire package installed, or we might be running in environments where we cannot install the transmitter to /usr. Instead, allow us to override the location of the transmitter binary, so we could potentially fake it out for testing purposes.

Metrics are only written to disk when the transmitter binary exists.
We only check a static path under /usr, the package destination. Thus,
checking to see if metrics have been written to disk is only possible
when the package is installed, and this requires root.

For testing purposes, we might want to have metrics written to disk but
without having the entire package installed, or we might be running in
environments where we cannot install the transmitter to /usr. Instead,
allow us to override the location of the transmitter binary, so we could
potentially fake it out for testing purposes.
@3405691582
3405691582 requested a review from cjreynol August 26, 2026 17:11
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