Giter Club home page Giter Club logo

Comments (3)

jrkarnes avatar jrkarnes commented on August 10, 2024 7

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.

cscheib avatar cscheib commented on August 10, 2024

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.

hush-hush avatar hush-hush commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.