Skip to content

Add metrics for v2 hooks, add type to rejected/granted metrics#88

Merged
jeremy-clerc merged 1 commit into
mainfrom
extend_metrics
Jun 10, 2026
Merged

Add metrics for v2 hooks, add type to rejected/granted metrics#88
jeremy-clerc merged 1 commit into
mainfrom
extend_metrics

Conversation

@jeremy-clerc

Copy link
Copy Markdown
Contributor

In a similar fashion to what we have for v1, add some metrics about ADB v2 hooks status codes, so we can track if some v2 hooks do not answer as expected.

Add the type of the NodeDisruption to disruption budget grant and reject metrics to help understand if rejections are specific to a type.

In a similar fashion to what we have for v1, add some metrics about
ADB v2 hooks status codes, so we can track if some v2 hooks do not
answer as expected.

Add the type of the NodeDisruption to disruption budget grant and
reject metrics to help understand if rejections are specific to a
type.
if err == nil {
return nil
}
if e, ok := err.(*openapiruntime.APIError); ok {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we check that all svc.{any_method} do return only APIError to avoid logging "200" in metrics while it should be an error code ?

@jeremy-clerc jeremy-clerc merged commit 417d751 into main Jun 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants