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
Right now we do not have an explicit policy for how we deprecate and/or change stats. We should develop a policy that we can follow as we do with API and code deprecations.
not sure how it is at other companies, but in the past I've seen stats migrations as much harder than API or (most) behavioral changes.
I think if something would no longer be incremented (e.g. retries due to request streaming) removing is not a big deal, but renames are a total pain. I'd lean towards "don't touch unless necessary" (e.g. the websocket stat which is now commented as applying to all upgrades, not just websocket) and I think we need at least the same 1+ year backwards compatible guarantee we do with APIs if not more, if we decide a stat is worth changing.
In general I agree with #11767 (comment). In a perfect world we would allow some wiggle room for maintainer judgement for stats that we don't think are very likely to be actively monitored, but if we want a blanket policy I think it needs to be similar to the API policy as @alyssawilk mentions.
The policy should also address prometheus stats, and the default tag extractors.
For instance, I just noticed that the worker is not extracted as desired, so there are the following stats defined, when the worker should be a tag. Fixing this is simply adjusting a regex, but there are backwards compatibility issues.
# TYPE envoy_listener_worker_0_downstream_cx_active gauge
# TYPE envoy_listener_worker_1_downstream_cx_active gauge
# TYPE envoy_server_worker_0_watchdog_mega_miss counter
# TYPE envoy_server_worker_1_watchdog_mega_miss counter
My guess is that this worked as intended at one time, but some other stat names changed and the default tag extractors were not updated, because we still have the following, but it does not match any current stats (source/common/config/well_known_names.cc):
Activity
mattklein123 commentedon Jun 26, 2020
cc @envoyproxy/maintainers @jmarantz
alyssawilk commentedon Jun 29, 2020
not sure how it is at other companies, but in the past I've seen stats migrations as much harder than API or (most) behavioral changes.
I think if something would no longer be incremented (e.g. retries due to request streaming) removing is not a big deal, but renames are a total pain. I'd lean towards "don't touch unless necessary" (e.g. the websocket stat which is now commented as applying to all upgrades, not just websocket) and I think we need at least the same 1+ year backwards compatible guarantee we do with APIs if not more, if we decide a stat is worth changing.
mattklein123 commentedon Jun 29, 2020
In general I agree with #11767 (comment). In a perfect world we would allow some wiggle room for maintainer judgement for stats that we don't think are very likely to be actively monitored, but if we want a blanket policy I think it needs to be similar to the API policy as @alyssawilk mentions.
alyssawilk commentedon Jun 29, 2020
Certainly we can exempt things in alpha and things which have landed quite recently O(week).
ggreenway commentedon Jun 29, 2020
The policy should also address prometheus stats, and the default tag extractors.
For instance, I just noticed that the
workeris not extracted as desired, so there are the following stats defined, when the worker should be a tag. Fixing this is simply adjusting a regex, but there are backwards compatibility issues.My guess is that this worked as intended at one time, but some other stat names changed and the default tag extractors were not updated, because we still have the following, but it does not match any current stats (
source/common/config/well_known_names.cc):[-]commnuity: develop stats deprecation policy[/-][+]community: develop stats deprecation policy[/+]