From 9411979b2b99a70304d4f37947401a570744f9d5 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 10 Dec 2024 21:01:01 -0500 Subject: [PATCH] logs --- ansible/dd_monitor/tasks/main.yaml | 6 ++++++ ansible/dd_monitor/templates/tcp_check.d.conf.yaml.j2 | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ansible/dd_monitor/tasks/main.yaml b/ansible/dd_monitor/tasks/main.yaml index 0774d14..7b1b52b 100644 --- a/ansible/dd_monitor/tasks/main.yaml +++ b/ansible/dd_monitor/tasks/main.yaml @@ -6,8 +6,14 @@ datadog_site: "{{ DATADOG_SITE }}" datadog_config: hostname: "{{ VM_HOSTNAME }}" + logs_enabled: true tags: - msm_location:{{ MSM_LOCATION }} + datadog_additional_groups: "systemd-journal" + datadog_checks: + logs: + - type: journald + path: /var/log/journal/ - name: Install datadog-ping ansible.builtin.command: datadog-agent integration install -r -t datadog-ping==1.0.2 diff --git a/ansible/dd_monitor/templates/tcp_check.d.conf.yaml.j2 b/ansible/dd_monitor/templates/tcp_check.d.conf.yaml.j2 index 581e021..c76fa2f 100644 --- a/ansible/dd_monitor/templates/tcp_check.d.conf.yaml.j2 +++ b/ansible/dd_monitor/templates/tcp_check.d.conf.yaml.j2 @@ -6,13 +6,16 @@ instances: host: 10.70.188.13 port: 22 service: GSG + collect_response_time: true - name: GSG Community Room Computers Kiosk 2 host: 10.70.188.14 port: 22 service: GSG + collect_response_time: true - name: GSG Community Room Computers Windows Print Server host: 10.70.188.12 port: 3389 service: GSG + collect_response_time: true