-
Notifications
You must be signed in to change notification settings - Fork 129
feat: Add ACL related metrics #291
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: dttung2905 <[email protected]>
|
Hi @weeco, could you help to take a look at this PR when you have time 🙏 ? |
return true | ||
} | ||
|
||
func getResourceTypeName(ACLResponse *kmsg.DescribeACLsResponse) map[string]int { |
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.
The resourcetype already has a string method
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.
its done
"go.uber.org/zap" | ||
) | ||
|
||
func (e *Exporter) collectACLInfo(ctx context.Context, ch chan<- prometheus.Metric) bool { |
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.
Should only be done if configured. Config should probably default to false to not break existing deployments with tight permissions setup
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 @weeco for the quick reply , I have updated the code to reflect this
Signed-off-by: dttung2905 <[email protected]>
Hi team,
This PR aims to add more ACL related metrics for kminion, inititally brought up by #137. It will now support 2 different types of metrics
Below is an example output under
/metrics
endpoint