community.general/lib/ansible/plugins
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
..
action Don't pass keyword args as positional, include file_name. Fixes #38190 (#38194) 2018-04-03 09:59:13 -05:00
cache add inventory caching & use in virtualbox inventory plugin (#34510) 2018-01-22 19:33:14 -05:00
callback Introduce grafana callback plugin. (#34246) 2018-04-03 18:51:52 -04:00
cliconf show version brief does not work on iosxr virtual (#37609) 2018-03-29 12:33:41 +05:30
connection fixes issue when netconf would report ios is not supported (#38155) 2018-04-03 17:01:59 -04:00
filter Revert accidental addition of Mapping in #37741 (#37939) 2018-03-26 13:57:56 -05:00
inventory doc: inventory: nmap: fix version added (#38157) 2018-03-31 11:45:12 +02:00
lookup flattened: doc: Typo in lookup example (#38006) 2018-03-28 08:25:40 +02:00
netconf Raise error when trying to use older iosxr modules with netconf (#37423) 2018-03-15 12:49:35 -04:00
shell win: handle non string as an environment value (#37215) 2018-03-09 08:02:54 +10:00
strategy Re-use logic from StrategyBase._load_included_file in StrategyModule.run for free and linear (#36470) 2018-02-21 09:53:15 -06:00
terminal Lenovo license update (#36840) 2018-03-06 18:02:46 +00:00
test Deprecate tests used as filters (#32361) 2017-11-27 17:58:08 -05:00
vars Scan group_vars/host_vars in sorted order 2017-11-20 21:57:42 -05:00
__init__.py fixed up get_options in AnsiblePlugin to use the correct plugin name 2017-11-22 15:35:31 -05:00
loader.py We need to save the basename into an attribute for calling code 2018-03-26 16:15:05 -07:00