Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stats: prevent disabling some stats #14051

Open
jmarantz opened this issue Nov 17, 2020 · 3 comments
Open

stats: prevent disabling some stats #14051

jmarantz opened this issue Nov 17, 2020 · 3 comments
Assignees
Labels
area/stats enhancement Feature requests. Not bugs or questions. no stalebot Disables stalebot from closing an issue

Comments

@jmarantz
Copy link
Contributor

Description:

Some stats can potentially be used for functional purposes during operation. However, the fact that they can be disabled via a stats matcher expression makes that an anti-pattern currently. We should have a mechanism to mark a stat as being immune from disabling. Since the disabling happens during stat instantiation, this would need to occur during stat construction.

Relevant Links:

https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/metrics/v3/stats.proto#config-metrics-v3-statsmatcher

@jmarantz jmarantz added enhancement Feature requests. Not bugs or questions. triage Issue requires triage area/stats labels Nov 17, 2020
@jmarantz
Copy link
Contributor Author

#13684 (comment) is an example of a case where it would be convenient to have stats that can be relied on.

@jmarantz
Copy link
Contributor Author

jmarantz commented Nov 17, 2020

Thinking about this further, I fear it would be a lot of toil to change (say) the COUNTER macro to include a new bool, or to add a new COUNTER macro variant for always-enabled stats. But we could add new Scope APIs or optional args to the existing ones to force construction regardless of stats disablement settings.

Maybe we don't need to worry about supporting force-enabled stats for the convenience macros.

@jmarantz jmarantz self-assigned this Nov 17, 2020
@jmarantz jmarantz removed the triage Issue requires triage label Nov 17, 2020
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Dec 17, 2020
@jmarantz jmarantz added no stalebot Disables stalebot from closing an issue and removed stale stalebot believes this issue/PR has not been touched recently labels Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/stats enhancement Feature requests. Not bugs or questions. no stalebot Disables stalebot from closing an issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant