-
Notifications
You must be signed in to change notification settings - Fork 277
feat(metrics): generalize admission webhook metrics #4597
Conversation
This change adds the `osm_admission_webhook_response_total` metric to track all mutating and validating webhook responses by Kubernetes resource kind and whether the request was successful or not. Example: osm_admission_webhook_response_total{kind="TrafficTarget",success="true"} 4 Part of #4568 Signed-off-by: Jon Huhn <[email protected]>
Signed-off-by: Jon Huhn <[email protected]>
Signed-off-by: Jon Huhn <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #4597 +/- ##
==========================================
- Coverage 68.73% 68.69% -0.04%
==========================================
Files 217 216 -1
Lines 14954 14982 +28
==========================================
+ Hits 10278 10292 +14
- Misses 4624 4639 +15
+ Partials 52 51 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
None | ||
The following capabilities have been deprecated and cannot be used. | ||
|
||
- The `osm_injector_injector_sidecar_count` and `osm_injector_injector_rq_time` metrics have been removed. The `osm_admission_webhook_response_total` and `osm_http_response_duration` metrics should be used instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this change, the osm_injector_injector_rq_time
and osm_injector_injector_sidecar_count
metrics can be removed from the OSM Mesh and Envoy Details Grafana dashboard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a pass at editing the dashboards to use the new metrics instead of removing the dashboards completely.
Signed-off-by: Jon Huhn <[email protected]>
Description:
This change adds the
osm_admission_webhook_response_total
metric totrack all mutating and validating webhook responses by Kubernetes
resource kind and whether the request was successful or not.
Example:
Part of #4568
Testing done:
Affected area:
Please answer the following questions with yes/no.
Does this change contain code from or inspired by another project? No
Is this a breaking change? Yes, release notes updated
Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)? Yes, add webhook metric osm-docs#341