Skip to content
Snippets Groups Projects
Commit d68693ff authored by Kerri Wait's avatar Kerri Wait
Browse files

Telegraf 1.15

parent efa96051
No related branches found
No related tags found
8 merge requests!399Capture extra NFS stats,!393Hotfix: monitor NFS GETATTR stats via telegraf,!392Temporarily disable inputs.filecount in telegraf,!389Update telegraf config to ignore more ethX interfaces in ethtool plugin,!388Fix the telegraf config for mlx hw counters to get rid of errors in logs,!387Telegraf 1.15 nvidia_smi fix,!386Telegraf 1.15 nvidia_smi plugin,!380Telegraf monitoring for Karaage (hpc.erc.monash.edu.au)
#!/bin/env python
import json
import os
def render_data(data):
return json.dumps(data)
hw_counters = {}
path_prefix = '/sys/class/infiniband'
path_suffix = 'ports/1/hw_counters'
for device_name in os.listdir(path_prefix):
path = os.path.join(path_prefix, device_name, path_suffix)
hw_counters[device_name] = os.listdir(path)
print(render_data(hw_counters))
\ No newline at end of file
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