-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tekton_pipelines_controller_pipelinerun_count
metric counter increases without having any pipeline executed
#4397
Comments
tekton_pipelines_controller_pipelinerun_count metric
counter increases without having any pipeline executedtekton_pipelines_controller_pipelinerun_count
metric counter increases without having any pipeline executed
Yes I confirm this behaviour. If I install Tekton with a resyncPeriod of the controller = 10 seconds, then when I create a single pipeline, every 10s, the counter Looking at the code, it shows also the duration histogram is incorrect. Older pipelines are counted many more times than younger pipelines. The bug is by design and I think, the only way to remove it is to refactor the code to create this counter only using the lister and not using the controller loop. |
@wlynch I fixed this in a pr #4468. @guillaumerose We generally use the rate function of Prometheus query to avoid instance restart related issues. Even with lister loop, information will be lost during restart because pipelinerun will be deleted by the end-user. So I think before and after condition check is sufficient to resolve this. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
/remove-lifecycle stale |
Expected Behavior
To have the
tekton_pipelines_controller_pipelinerun_count
metric counter increased only when new pipelines are executed.Actual Behavior
After a few hours the counter is increased without having any pipelines executed.
Steps to Reproduce the Problem on OpenShift
Additional Info
The text was updated successfully, but these errors were encountered: