-
Notifications
You must be signed in to change notification settings - Fork 37
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: Expose firecracker metrics #357
Conversation
@@ -26,8 +26,6 @@ linters-settings: | |||
local-prefixes: github.com/weaveworks/flintlock | |||
govet: | |||
check-shadowing: true | |||
misspell: | |||
locale: GB |
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.
Duplicated entry, removed one of them.
|
||
type WithFlagsFunc func() []cli.Flag | ||
|
||
func CLIFlags(options ...WithFlagsFunc) []cli.Flag { |
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 like this component builder pattern here because that way when/if we add more binaries (now exporter, maybe a helper to hide a lot of "setup" steps into a single binary to deploy, an agent that can sit in the microvm, or basically anything) we can reused the same flags. Maybe it will not work long term, but now it has a nice structure.
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 like everything going on in this file ✨
} | ||
} | ||
|
||
func ParseFlags(cfg *config.Config) cli.BeforeFunc { |
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 will parse everything we know, and if not defined it will be empty or default value.
bf30e74
to
f7bb26b
Compare
Codecov Report
@@ Coverage Diff @@
## main #357 +/- ##
==========================================
- Coverage 57.34% 56.63% -0.71%
==========================================
Files 51 52 +1
Lines 2567 2599 +32
==========================================
Hits 1472 1472
- Misses 970 1003 +33
+ Partials 125 124 -1
Continue to review full report at Codecov.
|
8c8a262
to
57e0aae
Compare
6903ad8
to
f39fae1
Compare
Example metrics output:
|
Hmm actually it's not #209 but #210.
Update: #209 is not just exposing but implementing stuff to expose. |
f39fae1
to
7e31a76
Compare
* Basic logic for the metrics exporter. * Basic docker compose file to start a prometheus and grafana instance for testing. * Metrics collection under provider. * Documentation Fixes liquidmetal-dev#210
7e31a76
to
5f6e6e8
Compare
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.
can you add a bit in the Makefile under build
for this?
are we having tests?
|
||
type WithFlagsFunc func() []cli.Flag | ||
|
||
func CLIFlags(options ...WithFlagsFunc) []cli.Flag { |
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 like everything going on in this file ✨
i am trying really hard to run this thing but containerd is not behaving today so i can't even create anything 😫 |
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.
LGTM, the only thing i would love is to refactor all the handlefuncs into their own little things for tidiness
oh and a build bit in Makefile
@Callisto13 : Can I get a new review? Changes:
|
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.
🚀
What this PR does / why we need it:
for testing.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #210
Special notes for your reviewer:
Checklist: