Enable gofmt code simplification (#4887)

This commit is contained in:
Trevor Pounds
2018-10-19 16:32:54 -04:00
committed by Daniel Nelson
parent 4a311830c6
commit ee056278f5
59 changed files with 599 additions and 599 deletions

View File

@@ -18,19 +18,19 @@ var (
measurement = "nvidia_smi"
metrics = "fan.speed,memory.total,memory.used,memory.free,pstate,temperature.gpu,name,uuid,compute_mode,utilization.gpu,utilization.memory,index,power.draw"
metricNames = [][]string{
[]string{"fan_speed", "integer"},
[]string{"memory_total", "integer"},
[]string{"memory_used", "integer"},
[]string{"memory_free", "integer"},
[]string{"pstate", "tag"},
[]string{"temperature_gpu", "integer"},
[]string{"name", "tag"},
[]string{"uuid", "tag"},
[]string{"compute_mode", "tag"},
[]string{"utilization_gpu", "integer"},
[]string{"utilization_memory", "integer"},
[]string{"index", "tag"},
[]string{"power_draw", "float"},
{"fan_speed", "integer"},
{"memory_total", "integer"},
{"memory_used", "integer"},
{"memory_free", "integer"},
{"pstate", "tag"},
{"temperature_gpu", "integer"},
{"name", "tag"},
{"uuid", "tag"},
{"compute_mode", "tag"},
{"utilization_gpu", "integer"},
{"utilization_memory", "integer"},
{"index", "tag"},
{"power_draw", "float"},
}
)