Skip to content

Emit e2e latency metrics #1008

Closed
Closed

Description

@bobcatfish

/area test-and-release
/kind dev

Expected Behavior

In order to track some metrics around latency over time, we want to add instrumentation to the e2e tests

Requirements

  1. Let's try to make this auto magic so that everyone who writes a test gets this for free
  2. Let's try to do this without turning the test libs into a framework
  3. These must be in a form that can be consumed by a tool such as Prow (e.g. written to a file, any other requirements here @adrcunha ? e.g. could writing to stdout be enough?)

Some ideas

  • Just record name of test, start time, end time (maybe make use of built in go test benchmarking?)
  • Automagically report the time between when an API call is made and when the polling finishes
  • Provide a function that allows test authors to arbitrarily report metrics they think are important

Actual Behavior

This does not happen.

Activity

  1. self-assigned this
    on May 31, 2018
  2. added
    area/test-and-release
    kind/feature
    on May 31, 2018
  3. bobcatfish commented on Jun 25, 2018

    @bobcatfish
    ContributorAuthor

    There is a separate document that describes the requirements for this functionality, so to try to make sure we are clear, the first idea listed above (which I implemented in #1335) will not meet the requirements which are:

    1. We need to know how long it takes to create resources in the system, from the time we have declared we want them created (i.e. called "create") to the time that is realized (when our polling indicates the resource is in the desired state)
    2. We want to be able to record the time taken for arbitrary e2e scenarios, e.g. scaling down to zero from some starting point, scaling up to >1.

    Example scenarios:

    1. Latency to create a configuration
    2. Latency to create a route
    3. Latency for a revision to get ready
    4. Scale down to zero latency
    5. Scale up to >1 latency

    For each of these metrics we want to track, we must emit:

    • Name
    • StartTime
    • EndTime
  4. added a commit that references this issue on Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/test-and-releasekind/feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions