-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
The current POC (from OSDK-1924) abuses the ansible event logging system to communicate to the binary. There are several issues with this method, chief among them that there is no way to communicate back to the module whether the operation succeeded or failed. The second POC will do exactly what the first POC did, create a single counter metric from Ansible, but rather than using the eventing system, will create a new api endpoint served by the binary that allows creating/setting the prometheus metrics. The ansible module will be updated to use this endpoint.
Acceptance Criteria:
- api for creating/updating metrics that supports at least counters
- Ansible module that supports at least counters, and uses this API to set them
- Sample operator that uses this module to create and update a prometheus counter object
POC1 ansible module: https://github.com/fabianvf/operator-sdk-ansible-util/tree/ansible-add-metrics
POC1 ansible-operator integration: https://github.com/fabianvf/operator-sdk/tree/ansible-add-metrics
- blocks
-
OPECO-1973 Fully support setting prometheus metrics from Ansible
- Closed