Skip to content

community: develop stats deprecation policy #11767

Open

Description

@mattklein123

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.

Activity

  1. mattklein123 commented on Jun 26, 2020

    @mattklein123
    MemberAuthor

    cc @envoyproxy/maintainers @jmarantz

  2. self-assigned this
    on Jun 26, 2020
  3. alyssawilk commented on Jun 29, 2020

    @alyssawilk
    Contributor

    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.

  4. mattklein123 commented on Jun 29, 2020

    @mattklein123
    MemberAuthor

    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.

  5. alyssawilk commented on Jun 29, 2020

    @alyssawilk
    Contributor

    Certainly we can exempt things in alpha and things which have landed quite recently O(week).

  6. ggreenway commented on Jun 29, 2020

    @ggreenway
    Member

    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):

      // listener_manager.(worker_<id>.)*
      addRegex(WORKER_ID, R"(^listener_manager\.((worker_\d+)\.))", "listener_manager.worker_");
    
  7. changed the title [-]commnuity: develop stats deprecation policy[/-] [+]community: develop stats deprecation policy[/+] on Oct 29, 2020
  8. removed their assignment
    on Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions