-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add Kubernetes collector #836
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #836 +/- ##
==========================================
+ Coverage 63.02% 63.75% +0.72%
==========================================
Files 49 56 +7
Lines 5983 6834 +851
Branches 62 62
==========================================
+ Hits 3771 4357 +586
- Misses 2206 2471 +265
Partials 6 6
|
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.
Thanks a lot:-) I've added a few minor comments.
collectors/kubernetes/Cargo.toml
Outdated
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.
Local dependencies can be transitioned to workspace dependencies
if ! [ -x "$(command -v sqlx)" ]; then | ||
echo >&2 "Error: sqlx is not installed." | ||
echo >&2 "Use:" | ||
echo >&2 " cargo install --version=0.7.2 sqlx-cli --no-default-features --features postgres,rustls,sqlite" |
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.
This version number is different from the Cargo.toml sqlx dependency version number (v0.7.4)
collectors/kubernetes/src/config.rs
Outdated
use serde::Deserialize; | ||
use tracing_subscriber::filter::LevelFilter; | ||
|
||
pub fn load_configuration(p: impl AsRef<Path>) -> Config { |
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.
load_configuration can be modified to return Result<Config, config::ConfigError>
Will do another commit in an hour or so |
A first version of the Kubernetes collector.
Still to do:
I found that it doesn't make much sense to use the queued client for this because we need a separate persistent storage anyway. The client would just be a second one.
Note:
I made a little change to AUDITOR: use the Display formatter for the
Display
implementation ofValidName
. Is this ok? If not I can revert this and apply a workaround in the collector.