-
Notifications
You must be signed in to change notification settings - Fork 175
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
RFC: Providing useful Ansible metrics with ara #187
Comments
Things on the to-do list based on feedback so far:
|
A quick iteration this morning:
|
Why not add prometheus metrics exposition into ara itself and reduce the complexity of the stack? |
@paulfantom o/ I wouldn't say no if someone contributed a prometheus metrics exporter but the data has to come from somewhere. The first objective is to make something that is simple and useful for humans, hence the CLI with pretty tables, querying, searching, ordering and filtering. The implementation is short and hopefully simple enough, for example Then, the CLI framework that we happen to use (cliff) provides flags out of the box for exporting data to csv, json or yaml instead of pretty tables. The exercise is to see if and how we can leverage this to export data to a monitoring system -- prometheus is an example. If the data is not presented in a way that's useful to those systems, I'd like to know so we can see if there are opportunities to tweak it before it lands. I'm no expert in data or metrics and so I appreciate the feedback, thanks :) |
I spent a limited amount of time exploring what a prometheus implementation might look like with the python client and I would had liked to get two birds with one stone with the current CLI proposal but it's specialized enough to warrant it's own integration. The proposed CLI implementation is useful enough for humans to ship as is and we can re-visit integration with monitoring and TSDB systems later. |
The first iteration of metrics commands landed in 1.5.4, we can close this issue and revisit it if need be. |
o/
Thank you for your interest !
TL;DR: ARA Records Ansible playbooks and we can use this playbook data to provide various metrics. Would these be useful to you ? How would you use them ? Would you change anything ? Please check the examples below, try it out and let us know what you think.
Use cases
At a high level, some of the things I expect this could be useful for:
The proposal and implementation
It's not just about code, it's also about UX and providing the right data in the right format.
The patches landing these new metrics commands have not been merged yet, you can find them in gerrit: https://review.opendev.org/#/q/project:%255Erecordsansible/ara.*+topic:metrics
If you'd like to install from source including these patches to try it out:
These commands are safe to use against your own deployment or you can also try out with https://api.demo.recordsansible.org:
ara playbook metrics
Examples:
Click to expand to full resolution
Help:
ara task metrics
Examples:
Click to expand to full resolution
Help:
ara host metrics
Examples:
Click to expand to full resolution
Help:
The text was updated successfully, but these errors were encountered: