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

Conversation

nodo
Copy link
Contributor

@nodo nodo commented Jan 22, 2021

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 and others added 4 commits January 21, 2021 14:07
…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.
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.
@hihilla hihilla merged commit 0a67bcb into master Jan 25, 2021
@hihilla hihilla deleted the anodari/metrics-controller branch January 25, 2021 12:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants