mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-10-31 00:55:06 +01:00 
			
		
		
		
	Use stype and stype-id for the NIC in NetstatCollector
This commit is contained in:
		| @@ -102,7 +102,7 @@ func (m *NetstatCollector) Init(config json.RawMessage) error { | ||||
|  | ||||
| 		// Check if device is a included device | ||||
| 		if _, ok := stringArrayContains(m.config.IncludeDevices, dev); ok { | ||||
| 			tags := map[string]string{"device": dev, "type": "node"} | ||||
| 			tags := map[string]string{"stype": "network", "stype-id": dev, "type": "node"} | ||||
| 			meta_unit_byte := map[string]string{"source": m.name, "group": "Network", "unit": "bytes"} | ||||
| 			meta_unit_byte_per_sec := map[string]string{"source": m.name, "group": "Network", "unit": "bytes/sec"} | ||||
| 			meta_unit_pkts := map[string]string{"source": m.name, "group": "Network", "unit": "packets"} | ||||
|   | ||||
| @@ -23,5 +23,5 @@ Metrics: | ||||
| * `net_pkts_in_bw` (`unit=packets/sec` if `send_derived_values == true`) | ||||
| * `net_pkts_out_bw` (`unit=packets/sec` if `send_derived_values == true`) | ||||
|  | ||||
| The device name is added as tag `device`. | ||||
| The device name is added as tag `stype=network,stype-id=<device>`. | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user