Comments (3)
It's worth noting that almost a year later, I have run into the same issue.
I don't think the documentation was ever updated.
from ansible-datadog.
I managed to fix it, after I figured out how the role unfurls the yaml structure from the playbook.
The README for this role could potentially benefit from some more documentation on generic cases under the "datadog_checks" heading... or documented examples on all of the built-in checks.
- hosts: all
roles:
- { role: Datadog.datadog, become: yes } # On Ansible < 1.9, use `sudo: yes` instead of `become: yes`
vars:
datadog_api_key: "REDACTED"
datadog_agent_version: "1:6.1.3-1" # for apt-based platforms, use a `6.0.0-1` format on yum-based platforms
datadog_config:
tags: "ddtag"
log_level: INFO
apm_enabled: "false" # has to be set as a string
logs_enabled: true # log collection is available on agent 6
datadog_checks:
logs:
logs:
- type: file
path: /var/log/alternatives.log
service: syslog
source: syslog
- type: file
path: /var/log/apt/history.log
service: syslog
source: syslog
- type: file
path: /var/log/auth.log
service: syslog
source: syslog
- type: file
path: /var/log/cloud-init.log
service: syslog
source: syslog
- type: file
path: /var/log/dpkg.log
service: syslog
source: syslog
- type: file
path: /var/log/kern.log
service: syslog
source: syslog
- type: file
path: /var/log/syslog
service: syslog
source: syslog
- type: file
path: /var/log/upstart/systemd-logind.log
service: syslog
source: syslog
from ansible-datadog.
Hi @cscheib,
Thanks for opening this issue. The role does miss some documentation (especially for checks like logs
which are a bit confusing).
I'll add some documentation on this part and an example for logs
.
from ansible-datadog.
Related Issues (20)
- Datadog APM does not work with Ansible 2.9 HOT 2
- Install will not work if deb package was removed from apt prior HOT 1
- Can a oom_kill_enabled option be added to config options? HOT 2
- windows install broken due to recent changes (fix proposed) HOT 1
- Improve the version check on Windows and avoid slow idempotency. HOT 2
- Mode 600 will set incorrect permissions on files. HOT 3
- Datadog Agent Installation Fails on `arm64` (M1) Mac Without Rosetta HOT 1
- Role is pulling in 7.28 as the stable version HOT 2
- Add support for Amazon Linux 2023 HOT 2
- A shell and a home folder HOT 2
- Add proxy usage for Windows agent install HOT 3
- The generated integration configs don't honor the order set in the playbook HOT 2
- Error when installing the datadog agent - Exception calling \"CreateProcess\" with \"7\" argument(s): \"CreateProcessW() failed (%1 is not a valid Win32 application, Win32ErrorCode 193 - 0x000000C1)\" HOT 1
- 4.21+ role version fails Molecule idempotency check on Windows HOT 1
- Password leaks in logs for datadog_windows_ddagentuser_password HOT 2
- Role not compatible with Ansible versions higher than v6.7.0 HOT 1
- Unable to find package datadog-agent available for amazon linux 2023 for ansible galaxy installation HOT 1
- Lookup File Failed - tasks/_agent-linux-macos-shared.yml - Parse install.json file if it exists
- Hashsum Error
- Galaxy datadog.datadog duplicate HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-datadog.