mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-10-30 16:45:07 +01:00 
			
		
		
		
	Avoid go vet warning:
struct field tag `json:"..., omitempty"` not compatible with reflect.StructTag.Get: suspicious space in struct tag value
This commit is contained in:
		| @@ -13,7 +13,7 @@ import ( | |||||||
| const CPUSTATFILE = `/proc/stat` | const CPUSTATFILE = `/proc/stat` | ||||||
|  |  | ||||||
| type CpustatCollectorConfig struct { | type CpustatCollectorConfig struct { | ||||||
| 	ExcludeMetrics []string `json:"exclude_metrics, omitempty"` | 	ExcludeMetrics []string `json:"exclude_metrics,omitempty"` | ||||||
| } | } | ||||||
|  |  | ||||||
| type CpustatCollector struct { | type CpustatCollector struct { | ||||||
|   | |||||||
| @@ -15,7 +15,7 @@ const DISKSTATFILE = `/proc/diskstats` | |||||||
| const DISKSTAT_SYSFSPATH = `/sys/block` | const DISKSTAT_SYSFSPATH = `/sys/block` | ||||||
|  |  | ||||||
| type DiskstatCollectorConfig struct { | type DiskstatCollectorConfig struct { | ||||||
| 	ExcludeMetrics []string `json:"exclude_metrics, omitempty"` | 	ExcludeMetrics []string `json:"exclude_metrics,omitempty"` | ||||||
| } | } | ||||||
|  |  | ||||||
| type DiskstatCollector struct { | type DiskstatCollector struct { | ||||||
|   | |||||||
| @@ -20,7 +20,7 @@ const LIDFILE = `/sys/class/infiniband/mlx4_0/ports/1/lid` | |||||||
| const PERFQUERY = `/usr/sbin/perfquery` | const PERFQUERY = `/usr/sbin/perfquery` | ||||||
|  |  | ||||||
| type InfinibandCollectorConfig struct { | type InfinibandCollectorConfig struct { | ||||||
| 	ExcludeDevices []string `json:"exclude_devices, omitempty"` | 	ExcludeDevices []string `json:"exclude_devices,omitempty"` | ||||||
| 	PerfQueryPath  string   `json:"perfquery_path"` | 	PerfQueryPath  string   `json:"perfquery_path"` | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -12,7 +12,7 @@ import ( | |||||||
| const LOADAVGFILE = `/proc/loadavg` | const LOADAVGFILE = `/proc/loadavg` | ||||||
|  |  | ||||||
| type LoadavgCollectorConfig struct { | type LoadavgCollectorConfig struct { | ||||||
| 	ExcludeMetrics []string `json:"exclude_metrics, omitempty"` | 	ExcludeMetrics []string `json:"exclude_metrics,omitempty"` | ||||||
| } | } | ||||||
|  |  | ||||||
| type LoadavgCollector struct { | type LoadavgCollector struct { | ||||||
|   | |||||||
| @@ -11,8 +11,8 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| type NvidiaCollectorConfig struct { | type NvidiaCollectorConfig struct { | ||||||
| 	ExcludeMetrics []string `json:"exclude_metrics, omitempty"` | 	ExcludeMetrics []string `json:"exclude_metrics,omitempty"` | ||||||
| 	ExcludeDevices []string `json:"exclude_devices, omitempty"` | 	ExcludeDevices []string `json:"exclude_devices,omitempty"` | ||||||
| } | } | ||||||
|  |  | ||||||
| type NvidiaCollector struct { | type NvidiaCollector struct { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user