mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-10-31 09:05:05 +01:00 
			
		
		
		
	Fix artifacts in netstat collector of not done cc-lib switch
This commit is contained in:
		| @@ -9,17 +9,17 @@ import ( | ||||
| 	"strings" | ||||
| 	"time" | ||||
|  | ||||
| 	lp "github.com/ClusterCockpit/cc-energy-manager/pkg/cc-message" | ||||
| 	cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger" | ||||
| 	lp "github.com/ClusterCockpit/cc-lib/ccMessage" | ||||
| ) | ||||
|  | ||||
| const NETSTATFILE = "/proc/net/dev" | ||||
|  | ||||
| type NetstatCollectorConfig struct { | ||||
| 	IncludeDevices     []string              `json:"include_devices"` | ||||
| 	SendAbsoluteValues bool                  `json:"send_abs_values"` | ||||
| 	SendDerivedValues  bool                  `json:"send_derived_values"` | ||||
| 	InterfaceAliases   map[string][]string   `json:"interface_aliases,omitempty"` | ||||
| 	IncludeDevices     []string            `json:"include_devices"` | ||||
| 	SendAbsoluteValues bool                `json:"send_abs_values"` | ||||
| 	SendDerivedValues  bool                `json:"send_derived_values"` | ||||
| 	InterfaceAliases   map[string][]string `json:"interface_aliases,omitempty"` | ||||
| } | ||||
|  | ||||
| type NetstatCollectorMetric struct { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user