Skip to content
Snippets Groups Projects
Commit f9131d32 authored by Jafar Lie's avatar Jafar Lie
Browse files

Merge branch 'telegraf-1.15' into 'master'

Telegraf 1.15 nvidia_smi plugin

See merge request !386
parents f3f49e50 9e3f5db1
No related branches found
No related tags found
1 merge request!386Telegraf 1.15 nvidia_smi plugin
# Pulls statistics from nvidia GPUs attached to the host
[[inputs.nvidia_smi]]
## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath
# bin_path = "/usr/bin/nvidia-smi"
## Optional: timeout for GPU polling
# timeout = "5s"
\ No newline at end of file
......@@ -70,3 +70,18 @@
become_user: root
tags:
- configuration
- name: Install nvidia-smi plugin
template:
src: inputs.nvidia_smi.conf.j2
dest: /etc/telegraf/telegraf.d/inputs.nvidia_smi.conf
owner: telegraf
group: telegraf
mode: '640'
notify:
- "restart telegraf"
become: true
become_user: root
tags:
- configuration
- gpu
\ No newline at end of file
......@@ -180,51 +180,6 @@
influxdb_database="slurm"
{% endif %}
# Read mlx hardware counters
{% if 'hw_counters' in ansible_local %}
{% for interface in ansible_local['hw_counters'] %}
[[inputs.multifile]]
name_override = 'infiniband'
base_dir = '/sys/class/infiniband'
interval = '60s'
[[inputs.multifile.tags]]
device = '{{ interface }}'
port = '1'
type = 'hw_counters'
{% for counter in ansible_local['hw_counters'][interface] | sort %}
[[inputs.multifile.file]]
file = '{{ interface }}/ports/1/hw_counters/{{ counter }}'
conversion = 'int'
{% endfor %}
{% endfor %}
{% endif %}
{% if 'Karaage' in group_names %}
[[inputs.apache]]
interval = "60s"
# An array of URLs to gather from, must be directed at the machine
# readable version of the mod_status page including the auto query string.
# Default is "http://localhost/server-status?auto".
urls = ["http://localhost/server-status?auto"]
# Credentials for basic HTTP authentication.
# username = "myuser"
# password = "mypassword"
# Maximum time to receive response.
response_timeout = "5s"
# Optional TLS Config
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
# Use TLS but skip chain & host verification
# insecure_skip_verify = false
{% endif %}
###############################################################################
# SERVICE INPUTS #
###############################################################################
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment