fgci-org / fgci-ansible

:microscope: Collection of the Finnish Grid and Cloud Infrastructure Ansible playbooks
MIT License
54 stars 18 forks source link

Push time it takes to run ansible-pull to grafana #132

Closed martbhell closed 8 years ago

martbhell commented 8 years ago

https://github.com/CSC-IT-Center-for-Science/fgci-ansible/blob/master/tools/grafana_ansible_pull.sh

In https://github.com/CSC-IT-Center-for-Science/ansible-role-fgci-install/issues/18 it would have been good to know how long it takes to run ansible-pull. We should push this metric to grafana too.

martbhell commented 8 years ago

Started working on this in 901d854c0a3359252be5fa443c2597d7bc88c9af The grafana_ansible_pull.sh script now supports an extra argument that is the time in seconds (not milliseconds or more fine grained to not have a dependency on bc or similar). Before proceeding with updating ansible-pull-script.sh - need to confirm that the annotations are still arriving to influxdb.

martbhell commented 8 years ago

Update to ansible-pull-script.sh: https://github.com/CSC-IT-Center-for-Science/ansible-role-fgci-install/commit/645f34221c079633d184af6b1d35e71287a2dde9 Shall we keep this for next fgci-ansible release or already next week?

martbhell commented 8 years ago

Let's include it.

martbhell commented 8 years ago

Included since https://github.com/CSC-IT-Center-for-Science/fgci-ansible/commit/fdc2a7fa333b5613b0a19fb3e983c54345be89b0