Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrating plugins from otel to bf2 #84

Merged
merged 4 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion ansible/monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,21 @@
state: started
name: spdk_tgt

- name: Nvidia | Set Docker socket has appropriate permissions
ansible.builtin.file:
path: /var/run/docker.sock
mode: '0666'

- name: Nvidia | Add additional mount for bf2
ansible.builtin.set_fact:
telegraf_mounts: "{{ telegraf_mounts + [{'type': 'bind', 'source': '/run/emu_param', 'target': '/run/emu_param', 'read_only': true}] }}"
telegraf_mounts: "{{ telegraf_mounts + [{'type': 'bind',
'source': '/run/emu_param',
'target': '/run/emu_param',
'read_only': true},
{'type': 'bind',
'source': '/var/run/docker.sock',
'target': '/var/run/docker.sock',
'read_only': true}] }}"

- name: Intel | telegraf otel monitoring
when: inventory_hostname == 'mev'
Expand Down
35 changes: 35 additions & 0 deletions telegraf.d/telegraf.conf.bf2
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,22 @@
tag_keys = ["name"]
json_query = "result.bdevs"

# CPU Input Plugin
[[inputs.cpu]]
percpu = true
totalcpu = true
collect_cpu_time = false
report_active = false

# Mem Input Plugin
[[inputs.mem]]
# no configuration

# Nstat Input Plugin
[[inputs.nstat]]
# no configuration

# For temperature
[[inputs.file]]
files = ["/run/emu_param/bluefield_temp"]
name_override = "temp"
Expand All @@ -40,9 +44,40 @@
data_type = "integer"
file_tag = "sensor"

# Infiniband Input Plugin
[[inputs.infiniband]]
# no configuration

# Diskio Input Plugin
[[inputs.diskio]]

# Disk Input Plugin
[[inputs.disk]]

# Swap Input Plugin
[[inputs.swap]]

# System Input Plugin
[[inputs.system]]

# Net Input Plugin
[[inputs.net]]

# Netstat Input Plugin
[[inputs.netstat]]

# Kernel Input Plugin
[[inputs.kernel]]

# Internal Input Plugin
[[inputs.internal]]

# Docker Input Plugin
[[inputs.docker]]

# Processes Input Plugin
[[inputs.processes]]

[[outputs.file]]
files = ["stdout"]
data_format = "influx"
Expand Down
Loading