-
Notifications
You must be signed in to change notification settings - Fork 63
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
[feat] Linode Client metrics #293
Conversation
Example new metrics, visible right after start (requires
If the token is incorrect, this can be inferred from these operations both failing.
|
22d44dc
to
ffe3035
Compare
Add `--authorization-always-allow-paths="/metrics"` to command line to allow scraping these metrics. In addition to Linode Client metrics, standard controller and worqueue metrics are visible by default. To disambiguate CCM node controller work queue name, it's explicitly named "ccm_node". That is, "node", "service" are upstream work queues of k8s cloud-provider service controller and "ccm_node" is the work queue of Linode CCM node controller. Fixes #296
ffe3035
to
23837ba
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #293 +/- ##
==========================================
- Coverage 71.07% 64.76% -6.31%
==========================================
Files 12 14 +2
Lines 2216 2455 +239
==========================================
+ Hits 1575 1590 +15
- Misses 490 714 +224
Partials 151 151 ☔ View full report in Codecov by Sentry. |
I didn't find a good way to fix coverage for the generated file. It doesn't look trivial to generate calls to all the methods. Gowrap provides method declaration as a string. I'd need to parse the Interface from AST. Doable but is it worth it? A generated test case would look like so and it's pretty much all boilerplate.
Note that
Note, it also brings other aspects - retries and path patterns into label cardinality consideration (we cannot expose resource IDs). Example form linodego:
|
General:
Pull Request Guidelines: