community.general/lib/ansible/plugins/callback
Rémi REY 71699d5140 Introduce grafana callback plugin. (#34246)
* 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
2018-04-03 18:51:52 -04:00
..
__init__.py debug should have item (#36534) 2018-02-23 15:12:14 -05:00
actionable.py fix spelling. Seriously, that's it. 2018-02-12 13:17:55 -05:00
context_demo.py Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
debug.py corrected dump signature 2018-02-12 16:52:04 -05:00
default.py remove extra fields from debug output 2018-02-20 08:46:05 -05:00
dense.py Windows: Clean up documentation (#36684) 2018-02-25 03:09:54 +01:00
foreman.py fix set options in callbacks for foreman 2018-04-02 12:17:39 -04:00
full_skip.py fix spelling. Seriously, that's it. 2018-02-12 13:17:55 -05:00
grafana_annotations.py Introduce grafana callback plugin. (#34246) 2018-04-03 18:51:52 -04:00
hipchat.py Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
jabber.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
json.py Restore skipped/failed in JSON callback, add custom facts (#37204) 2018-03-20 10:32:33 -04:00
junit.py Count ignored failed tasks and successful tasks with expected failure… (#33282) 2018-01-03 16:03:15 -08:00
log_plays.py fixes typo ansbile to ansible 2018-01-02 17:17:53 -08:00
logentries.py Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
logstash.py Updated documentation description (#34121) 2017-12-21 13:44:54 +10:00
mail.py Windows: Clean up documentation (#36684) 2018-02-25 03:09:54 +01:00
minimal.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
null.py Added callback that removes callback noise 2017-11-09 17:12:13 -05:00
oneline.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
osx_say.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
profile_roles.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
profile_tasks.py Use module formatting (#33413) 2017-12-07 14:26:52 +00:00
selective.py hide uneeded fields for callbacks (#36259) 2018-02-20 08:41:18 -05:00
skippy.py fixed issue with default callback inheritance (#30427) 2017-09-15 11:14:47 -07:00
slack.py get_option instead of internal dict (#33191) 2017-11-28 12:00:22 -05:00
stderr.py fixed issue with default callback inheritance (#30427) 2017-09-15 11:14:47 -07:00
syslog_json.py syslog_json: fix typos in documentation 2017-11-13 17:11:15 -05:00
timer.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
tree.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
unixy.py fix unixy when debug's msg is not text (#36882) 2018-03-01 09:23:39 +10:00
yaml.py yaml callback fails on python3 2018-04-02 11:41:00 -04:00