-
Notifications
You must be signed in to change notification settings - Fork 58
Add prometheus metrics to osctrl-tls #522
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
Conversation
Thank you for the PR! I will add some comments in a code review 🙂 |
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 again for the PR! 🙏
I have added few comments, mostly related with having metrics not enabled by default, and the ability to enable them via configuration or flags.
I have updated the flag. Should I start to clean up the old metrics components for osctrl-tls? |
You mean the emitted metrics? Instead of removing them, it would be better if we can find a way for those to be utilized by prometheus too. |
@javuto I have added the flag, could you please take another look? |
@javuto I Just fixed the conflicts. |
This PR added Prometheus metrics support for osctrl-tls. Issue: #504
Currently, it has all default metrics go metrics such as memory info and gc duration etc. Also, we added one custom histogram metric to measure the total request/latency to each osquery endpoint.
The metric server would run as a separate service in a different port. We can query e.g. P90 latency for each endpoint with different environments with the histogram metric.
Also the request rate for different path and status code.
