-
Notifications
You must be signed in to change notification settings - Fork 594
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
chore: decouple feature gates configuration from manager creation and improve #7085
Conversation
3d68c43
to
593247c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/kic-as-library #7085 +/- ##
=====================================================
Coverage ? 76.8%
=====================================================
Files ? 214
Lines ? 24870
Branches ? 0
=====================================================
Hits ? 19117
Misses ? 4767
Partials ? 986 ☔ View full report in Codecov by Sentry. |
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.
it has been moved to pkg for further adjustments - prerequisite for #7048 and decoupling telemetry from manager creation, the same as it's been done for health checks
Do we need to extract telemetry outside of the manager? I assumed that every instance would report its data, and we'd only make it distinguishable via an optional additional report key, e.g. embedded-kic-instance=true
or something similar when it's run in KO.
This is a good question - #7085 (review)
where it reports from the whole cluster, so reporting the same from many instances of KIC that are a part of one binary leads to duplication and multiple necessary connections. My idea was that only one place executes queries for reports and submits them because all metrics besides feature gates (described later) are cluster-wide. Such aan pproach reduces the overhead and ensures that |
Ah, yes, I missed the point that telemetry not only reports KIC-specific data, but also aggregates info about cluster-wide stuff like number of routes, etc. It makes sense then to extract it. 👍 |
What this PR does / why we need it:
pkg/telemetry/reports.go
- simplification of the usage - following a convention that when an error is returned caller doesn't need to care about any outstanding actions (in this case shutting down reporting), it has been moved topkg
for further adjustments - prerequisite for Telemetry data allows verifying that KIC instance is run as a library #7048 and decoupling telemetry from manager creation, the same as it's been done for health checksWhich issue this PR fixes:
Part of the effort to achieve