kubewharf / katalyst-core

Katalyst aims to provide a universal solution to help improve resource utilization and optimize the overall costs in the cloud. This is the core components in Katalyst system, including multiple agents and centralized components
Apache License 2.0
389 stars 91 forks source link

feat(audit): eventbus metrics #613

Closed zzzzhhb closed 3 weeks ago

zzzzhhb commented 3 weeks ago

What type of PR is this?

Enhancements

What this PR does / why we need it:

This PR adds some metrics about eventbus.

Which issue(s) this PR fixes:

Special notes for your reviewer:

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 66.66667% with 13 lines in your changes missing coverage. Please review.

Project coverage is 56.22%. Comparing base (07550c5) to head (cc4473d). Report is 1 commits behind head on main.

Files Patch % Lines
pkg/util/eventbus/event_bus.go 68.42% 10 Missing and 2 partials :warning:
cmd/katalyst-agent/app/agent/audit.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #613 +/- ## ========================================== + Coverage 56.00% 56.22% +0.22% ========================================== Files 543 543 Lines 50314 50340 +26 ========================================== + Hits 28179 28305 +126 + Misses 18550 18447 -103 - Partials 3585 3588 +3 ``` | [Flag](https://app.codecov.io/gh/kubewharf/katalyst-core/pull/613/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | Coverage Δ | | |---|---|---| | [unittest](https://app.codecov.io/gh/kubewharf/katalyst-core/pull/613/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | `56.22% <66.66%> (+0.22%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.