Skip to content
Snippets Groups Projects
Commit 24adefb6 authored by Chris Hines's avatar Chris Hines
Browse files

Merge branch 'ft-telegraf-networking' into 'master'

Update telegraf config to parse /proc/net/softnet_stat details

See merge request !338
parents d6bfedeb c705704f
No related branches found
No related tags found
1 merge request!338Update telegraf config to parse /proc/net/softnet_stat details
#! /usr/bin/awk -f
{ printf("softnet,cpu=%d sd_processed=%di,sd_dropped=%di,sd_time_squeeze=%di\n", NR-1, strtonum("0x"$1), strtonum("0x"$2), strtonum("0x"$3)) }
\ No newline at end of file
......@@ -64,7 +64,15 @@
dest: '/opt/telegraf/bin/telegraf_slurmstats.py'
become: true
become_user: root
#
- name: copy softnet_stat script
copy:
mode: 'u=rw,g=r,o=r'
src: telegraf_softnet_stats.awk
dest: '/opt/telegraf/bin/telegraf_softnet_stats.awk'
become: true
become_user: root
- name: Install Telegraf config
template:
src: telegraf.conf.j2
......
......@@ -157,6 +157,14 @@
timeout="4s"
interval="300s"
[[inputs.exec]]
commands = [
"awk -v -f /opt/telegraf/bin/telegraf_softnet_stats.awk /proc/net/softnet_stat"
]
data_format = "influx"
timeout="4s"
interval="600s"
# Both Slurm ManagementNodes will log sdiag stats, but no Compute or Login nodes will
{% if 'ManagementNodes' in group_names %}
[[inputs.exec]]
......
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