Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Measure time from Application creation/modification to Chart Installation #383

Merged
merged 4 commits into from
Jan 25, 2021

Commits on Jan 21, 2021

  1. Measuring time from Application creation/modification to Chart Instal…

    …lation
    
    This is the first iteration of gathering information from the moment
    an application is modified to the moment that the chart is
    installed. We're measuring the time it takes Shipper to render the
    chart, install it, and report that it has been installed.
    Parham Doustdar authored and nodo committed Jan 21, 2021
    Configuration menu
    Copy the full SHA
    14d5159 View commit details
    Browse the repository at this point in the history
  2. Registered the metrics in the MetricsBundle, so that they get exposed…

    … by Prometheus
    Parham Doustdar authored and nodo committed Jan 21, 2021
    Configuration menu
    Copy the full SHA
    3c327c3 View commit details
    Browse the repository at this point in the history
  3. Added garbage collection for the cache

    Metrics controller stores the last modified time of each application
    as it is created or updated. It's possible that for some
    reasons (e.g. releases not getting rolled out for a long time, the
    informers missing events, and other cases that I don't currently know
    of) our cache would grow to be too big.
    
    This commit adds code to prevent that from happening, by periodically
    cleaning up all the entries that have been added more than 1 hour
    ago.
    
    This period is currently defined as a constant. We can later get that
    as a command-line parameter if it turns out that we need to modify it
    in the deployment.
    Parham Doustdar authored and nodo committed Jan 21, 2021
    Configuration menu
    Copy the full SHA
    2d01a8c View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2021

  1. Refine logic to capture Chart installation time

    CRUNTIME-438
    nodo committed Jan 22, 2021
    Configuration menu
    Copy the full SHA
    d0ca9dd View commit details
    Browse the repository at this point in the history