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

Add goroutine_by_scheduling_operation metric to kube_scheduler check #15697

Merged
merged 13 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions kube_scheduler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

***Added***:

* Add goroutine_by_scheduling_operation metric to kube_scheduler check ([#15697](https://github.com/DataDog/integrations-core/pull/15697))

## 4.6.1 / 2023-08-18

***Fixed***:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@
'scheduler_pending_pods': 'pending_pods'
}

NEW_1_26_GAUGES = {
'scheduler_goroutines': 'goroutine_by_scheduling_operation',
}

DEFAULT_GO_METRICS = {
'go_gc_duration_seconds': 'gc_duration_seconds',
'go_goroutines': 'goroutines',
Expand Down Expand Up @@ -159,6 +163,7 @@ def __init__(self, name, init_config, instances):
DEFAULT_GAUGES,
NEW_1_15_GAUGES,
DEFAULT_GO_METRICS,
NEW_1_26_GAUGES,
DEPRECARED_SUMMARIES,
NEW_1_23_HISTOGRAMS,
],
Expand Down
1 change: 1 addition & 0 deletions kube_scheduler/metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ kube_scheduler.gc_duration_seconds.count,gauge,,,,"Number of the GC invocation",
kube_scheduler.gc_duration_seconds.quantile,gauge,,,second,"GC invocation durations quantiles",0,kube_scheduler,goroutines,
kube_scheduler.gc_duration_seconds.sum,gauge,,,second,"GC invocation durations sum",0,kube_scheduler,goroutines,
kube_scheduler.goroutines,gauge,,,,"Number of goroutines that currently exist",0,kube_scheduler,goroutines,
kube_scheduler.goroutine_by_scheduling_operation,gauge,,,,"Number of running goroutines split by the work they do such as binding (requires k8s v1.26+)",0,kube_scheduler,goroutine_by_scheduling_operation,
Copy link
Contributor

@clamoriniere clamoriniere Aug 29, 2023

Choose a reason for hiding this comment

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

could you also specify in the metric description that this metrics is in alpha stage so they can be removed upstream on the next kubernetes version

I think we have some metric on which we add this info

kube_scheduler.max_fds,gauge,,,,Maximum allowed open file descriptors,0,kube_scheduler,max_fds,
kube_scheduler.open_fds,gauge,,,,Number of open file descriptors,0,kube_scheduler,open_fds,
kube_scheduler.pod_preemption.victims.count,gauge,,,,"Number of selected pods during the latest preemption round",0,kube_scheduler,pod_preemption.victims.count,
Expand Down
Loading