From aa2665f34c39d7e57870dca1e4a6736327ff3aed Mon Sep 17 00:00:00 2001 From: mohamedasifs123 Date: Sat, 31 Aug 2024 19:59:42 +0530 Subject: [PATCH] feat: adding mrv and amd cards Signed-off-by: mohamedasifs123 --- ansible/monitoring.yml | 38 ++++++++++++++++++++++++++++++++++++ telegraf.d/telegraf.conf.amd | 18 +++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 telegraf.d/telegraf.conf.amd diff --git a/ansible/monitoring.yml b/ansible/monitoring.yml index 0322588..20bd83e 100644 --- a/ansible/monitoring.yml +++ b/ansible/monitoring.yml @@ -69,10 +69,48 @@ target: /etc/telegraf/telegraf.conf read_only: true + - name: MARVELL | telegraf otel monitoring + when: inventory_hostname == 'mrv' + block: + - name: MARVELL | Run telegraf container on MRV + community.docker.docker_container: + name: telegraf + image: docker.io/library/telegraf:1.31 + state: started + restart: true + detach: true + network_mode: host + restart_policy: always + mounts: + - type: bind + source: /root/telegraf.d/telegraf.conf.mrv + target: /etc/telegraf/telegraf.conf + read_only: true + + - name: AMD | telegraf otel monitoring + when: inventory_hostname == 'amd' + block: + - name: AMD | Run telegraf container on Pensando + community.docker.docker_container: + name: telegraf + image: docker.io/library/telegraf:1.31 + state: started + restart: true + detach: true + network_mode: host + restart_policy: always + mounts: + - type: bind + source: /root/telegraf.d/telegraf.conf.amd + target: /etc/telegraf/telegraf.conf + read_only: true + - name: Run telegraf container on others when: - inventory_hostname != 'mev' - inventory_hostname != 'bf2' + - inventory_hostname != 'mrv' + - inventory_hostname != 'amd' community.docker.docker_container: name: telegraf image: docker.io/library/telegraf:1.31 diff --git a/telegraf.d/telegraf.conf.amd b/telegraf.d/telegraf.conf.amd new file mode 100644 index 0000000..d7250a2 --- /dev/null +++ b/telegraf.d/telegraf.conf.amd @@ -0,0 +1,18 @@ +[[inputs.cpu]] + percpu = true + totalcpu = true + collect_cpu_time = false + report_active = false + +[[inputs.mem]] + # no configuration + +[[inputs.nstat]] + # no configuration + +[[outputs.file]] + files = ["stdout"] + data_format = "influx" + +[[outputs.opentelemetry]] + service_address = "192.168.0.1:4317"