-
Notifications
You must be signed in to change notification settings - Fork 14
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 custom metrics #812
✨ add custom metrics #812
Conversation
Set as draft MR so we can discuss which other metrics should be exposed |
Hi @mariuskimmina , thanks for your PR. The idea behind the issue was to get to the next capability level for the operator: As you can see here, we are currently at level 3. We do not have any metrics we currently need. The amount of configs is a nice first indicator. We appreciate your contribution and think this is the right direction going forward. It would be nice if you could add tests for the metrics. |
thanks for the insight, I should be able to add tests sometime next week |
d84e9ec
to
a060fe3
Compare
Added a (very minimal) test for this |
@mariuskimmina Thanks for adding the tests. Strangely, now the linter step fails, which seems unrelated to your PR:
And a lot more like these. I need to look into this. |
There are some issues, e.g., golangci/golangci-lint-action#244 and golangci/golangci-lint-action#135 which mention this problem. Perhaps the solution is just disabling some conflicting caching... |
Strange, this job shows the same errors but still passes: https://github.com/mondoohq/mondoo-operator/actions/runs/5390664672/jobs/9833822310 |
The actual cause was burried somewhere in the logs:
@mariuskimmina Please have a look at the linter issues. Note to myself: We still need to fix the error message to make it easier to find real problems. |
The errors polutew the logs and make it hard to find real problems For some background, see #812 Signed-off-by: Christian Zunker <christian@mondoo.com>
Linter issues have been fixed @czunker |
Signed-off-by: Marius Kimmina <mar.kimmina@gmail.com>
db8d5f3
to
01b45ce
Compare
The errors polute the logs and make it hard to find real problems For some background, see #812 Signed-off-by: Christian Zunker <christian@mondoo.com>
The failing test seem to be due to issues pulling images: |
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 for this contribution @mariuskimmina
#213
Currently, this only adds one metrics
mondoo_audit_config
which shows the number of mondoAuditConfigs.