Skip to content

Commit

Permalink
feat: adding mrv and amd cards
Browse files Browse the repository at this point in the history
Signed-off-by: mohamedasifs123 <[email protected]>
  • Loading branch information
mohamedasifs123 committed Aug 31, 2024
1 parent 7e64256 commit aa2665f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
38 changes: 38 additions & 0 deletions ansible/monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions telegraf.d/telegraf.conf.amd
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit aa2665f

Please sign in to comment.