On this page
community.general.datadog_event – Posts events to Datadog service
Note
This plugin is part of the community.general collection (version 1.3.2).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.datadog_event
.
Synopsis
- Allows to post events to Datadog (www.datadoghq.com) service.
- Uses http://docs.datadoghq.com/api/#events API.
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
aggregation_key
string
|
An arbitrary string to use for aggregation.
|
|
alert_type
string
|
|
Type of alert.
|
api_key
string / required
|
Your DataDog API key.
|
|
app_key
string / required
|
Your DataDog app key.
|
|
date_happened
integer
|
POSIX timestamp of the event.
Default value is now.
|
|
host
string
|
Host name to associate with the event.
If not specified, it defaults to the remote system's hostname.
|
|
priority
string
|
|
The priority of the event.
|
tags
list / elements=string
|
Comma separated list of tags to apply to the event.
|
|
text
string / required
|
The body of the event.
|
|
title
string / required
|
The event title.
|
|
validate_certs
boolean
|
|
If no , SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates.
|
Examples
- name: Post an event with low priority
community.general.datadog_event:
title: Testing from ansible
text: Test
priority: low
api_key: 9775a026f1ca7d1c6c5af9d94d9595a4
app_key: j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN
- name: Post an event with several tags
community.general.datadog_event:
title: Testing from ansible
text: Test
api_key: 9775a026f1ca7d1c6c5af9d94d9595a4
app_key: j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN
tags: 'aa,bb,#host:{{ inventory_hostname }}'
Authors
- Artūras
arturaz
Šlajus (@arturaz) - Naoya Nakazawa (@n0ts)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/datadog_event_module.html