Created
July 26, 2017 22:39
-
-
Save Findarato/6b39a43669a2f92b2543d16e97ccd321 to your computer and use it in GitHub Desktop.
telegraf parse of nvidia
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[inputs.logparser]] | |
files = ["/opt/nvidia/nvidia_log.csv"] | |
from_beginning = true | |
[inputs.logparser.grok] | |
patterns = ["%{GPU}",'''%{TIMESTAMP_ISO8601:timestamp:ts-"2006/01/02 15:04:05.000"}'''] | |
measurement = "gpu" | |
custom_patterns = ''' | |
GPU %{DATA:timestamp:ts-"2006/01/02 15:04:05.000"}, %{DATA:gpu_name:tag}, %{DATA:slot:tag}, %{NUMBER:driver:float}, P%{NUMBER:pstate:int}, %{NUMBER:temperature:int}, %{NUMBER:gpu_utilization:int} %, %{NUMBER:memory_utilization:int} %, %{NUMBER:memory_total:int} MiB, %{NUMBER:memory_free:int} MiB, %{NUMBER:memory_used:int} MiB, %{NUMBER:fan_speed:int} %, %{NUMBER:power_draw:float} W, %{NUMBER:sm_clock:int} MHz, %{NUMBER:memory_clock:int} MHz, %{NUMBER:graphics_clock:int} MHz | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment