mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-07 00:44:01 -07:00
* Introduce grafana callback plugin. The grafana plugin plublishes annotations to the HTTP API available in Grafana 4.6+ The callback publishes: * An annotation on playbook start, tagged with "ansible", "ansible_event_start" and playbook name, example: ``` { "text": "Started playbook test.yml\n\nFrom 'pc45.home'\nBy user 'remirey'\n", "tags": ["ansible", "ansible_event_start", "test.yml"], "time": 1514291163000 } ``` * An annotation on error containing the host and task who failed and tagged with "ansible", "ansible_event_failure" and playbook name, example: ``` { "text": "Playbook test.yml Failure !\n\nFrom 'pc45.home'\nBy user 'remirey'\n\n'TASK: simulate failure' failed on localhost\n\ndebug: {\"changed\": false, \"msg\": \"Some random failure\"}\n", "tags": ["ansible", "ansible_event_failure", "test.yml"], "time": 1514291165000 } ``` * A region annotation emitted on playbook stats, tagged with "ansible", "ansible_report" and playbook name, example: ``` { "text": "Playbook test.yml\nDuration: 1.641703\nStatus: FAILED\n\nFrom 'pc45.home'\nBy user 'remirey'\n\nResult:\n{\"localhost\": {\"unreachable\": 0, \"skipped\": 0, \"ok\": 2, \"changed\": 1, \"failures\": 1}}\n", "tags": ["ansible", "ansible_report", "test.yml"], "isRegion": true, "timeEnd": 1514291165000, "time": 1514291163000 } ``` Fixes #34225 |
||
---|---|---|
.. | ||
__init__.py | ||
actionable.py | ||
context_demo.py | ||
debug.py | ||
default.py | ||
dense.py | ||
foreman.py | ||
full_skip.py | ||
grafana_annotations.py | ||
hipchat.py | ||
jabber.py | ||
json.py | ||
junit.py | ||
log_plays.py | ||
logentries.py | ||
logstash.py | ||
mail.py | ||
minimal.py | ||
null.py | ||
oneline.py | ||
osx_say.py | ||
profile_roles.py | ||
profile_tasks.py | ||
selective.py | ||
skippy.py | ||
slack.py | ||
stderr.py | ||
syslog_json.py | ||
timer.py | ||
tree.py | ||
unixy.py | ||
yaml.py |