Skip to content
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

feat: new pod phase counter metric #13272

Merged
merged 1 commit into from
Aug 19, 2024
Merged

feat: new pod phase counter metric #13272

merged 1 commit into from
Aug 19, 2024

Conversation

Joibel
Copy link
Member

@Joibel Joibel commented Jun 28, 2024

From #12589

This is a new metric counting how many pods have gone into each pod phase as observed by the controller.

This is like pods_gauge, but as a counter rather than a gauge.

The gauge is useful at telling you what is happening right now in the cluster, but is not useful for long term statistics such as "How many pods has workflows run" because it may never report some pods at all. This counter can answer that question.

Note to reviewers: this is now a standalone commit

@Joibel Joibel force-pushed the opentelemetry-k8sduration branch from 6084e25 to a5f5cb4 Compare July 1, 2024 07:42
@Joibel Joibel force-pushed the opentelemetry-podphase branch from 6729538 to 432d8fc Compare July 1, 2024 07:42
@Joibel Joibel added area/controller Controller issues, panics area/metrics labels Jul 1, 2024
@agilgur5 agilgur5 changed the title feat: new pod phase counter metric 🪧 [DNM] feat: new pod phase counter metric Jul 1, 2024
@Joibel Joibel force-pushed the opentelemetry-k8sduration branch 2 times, most recently from 49a3c4d to 8c74273 Compare July 5, 2024 10:27
@Joibel Joibel force-pushed the opentelemetry-podphase branch from 432d8fc to 4096782 Compare July 5, 2024 10:28
@Joibel Joibel force-pushed the opentelemetry-k8sduration branch from 8c74273 to f8c31f7 Compare July 8, 2024 10:06
@Joibel Joibel force-pushed the opentelemetry-podphase branch from 4096782 to 14a762e Compare July 8, 2024 10:06
@Joibel Joibel force-pushed the opentelemetry-k8sduration branch from f8c31f7 to fc9b88e Compare July 9, 2024 14:27
@Joibel Joibel force-pushed the opentelemetry-podphase branch from 14a762e to 9cf9291 Compare July 9, 2024 14:27
@Joibel Joibel force-pushed the opentelemetry-k8sduration branch from fc9b88e to 06a6583 Compare July 12, 2024 08:48
@Joibel Joibel force-pushed the opentelemetry-podphase branch from 9cf9291 to 55742dd Compare July 12, 2024 08:49
@Joibel Joibel force-pushed the opentelemetry-k8sduration branch from 06a6583 to 457c8ec Compare August 12, 2024 11:13
@Joibel Joibel force-pushed the opentelemetry-podphase branch from 55742dd to bbd57a4 Compare August 12, 2024 11:13
@Joibel Joibel force-pushed the opentelemetry-k8sduration branch from 457c8ec to 705be42 Compare August 12, 2024 11:20
@Joibel Joibel force-pushed the opentelemetry-podphase branch from bbd57a4 to 62717f1 Compare August 12, 2024 11:20
@Joibel Joibel force-pushed the opentelemetry-k8sduration branch from 705be42 to dc3469a Compare August 14, 2024 10:41
@Joibel Joibel force-pushed the opentelemetry-podphase branch from 62717f1 to 914bffe Compare August 14, 2024 10:41
@Joibel Joibel force-pushed the opentelemetry-k8sduration branch from dc3469a to e825f72 Compare August 15, 2024 08:04
@Joibel Joibel force-pushed the opentelemetry-podphase branch from 914bffe to ed07b58 Compare August 15, 2024 08:04
@Joibel Joibel force-pushed the opentelemetry-k8sduration branch from e825f72 to 8f3216d Compare August 15, 2024 14:06
@Joibel Joibel force-pushed the opentelemetry-podphase branch from ed07b58 to b09c0d2 Compare August 15, 2024 14:06
@Joibel Joibel force-pushed the opentelemetry-k8sduration branch from 8f3216d to e18eac6 Compare August 16, 2024 09:08
@Joibel Joibel force-pushed the opentelemetry-podphase branch 2 times, most recently from 4765408 to e90ca47 Compare August 16, 2024 09:23
@Joibel Joibel changed the title 🪧 [DNM] feat: new pod phase counter metric feat: new pod phase counter metric Aug 16, 2024
@Joibel Joibel changed the base branch from opentelemetry-k8sduration to main August 16, 2024 09:30
Copy link
Member

@isubasinghe isubasinghe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Joibel Joibel enabled auto-merge (squash) August 19, 2024 07:12
From #12589

This is a new metric counting how many pods have gone into each pod
phase as observed by the controller.

This is like pods_gauge, but as a counter rather than a gauge.

The gauge is useful at telling you what is happening right now in
the cluster, but is not useful for long term statistics such as "How
many pods has workflows run" because it may never report some pods at
all. This counter can answer that question.

Note to reviewers: this is part of a stack of reviews for metrics
changes. Please don't merge until the rest of the stack is also ready.

Signed-off-by: Alan Clucas <[email protected]>
@Joibel Joibel force-pushed the opentelemetry-podphase branch from d379834 to 454b5a8 Compare August 19, 2024 07:38
@Joibel Joibel merged commit f8e125a into main Aug 19, 2024
28 checks passed
@Joibel Joibel deleted the opentelemetry-podphase branch August 19, 2024 08:14
@agilgur5 agilgur5 added this to the v3.6.0 milestone Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller Controller issues, panics area/metrics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants