mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-10-31 09:05:05 +01:00 
			
		
		
		
	Fix artifacts of not done cc-lib switch
This commit is contained in:
		| @@ -8,15 +8,15 @@ import ( | ||||
| 	"syscall" | ||||
| 	"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 MOUNTFILE = `/proc/self/mounts` | ||||
|  | ||||
| type DiskstatCollectorConfig struct { | ||||
| 	ExcludeMetrics []string `json:"exclude_metrics,omitempty"` | ||||
| 	ExcludeMounts []string `json:"exclude_mounts,omitempty"` | ||||
| 	ExcludeMounts  []string `json:"exclude_mounts,omitempty"` | ||||
| } | ||||
|  | ||||
| type DiskstatCollector struct { | ||||
|   | ||||
| @@ -4,8 +4,8 @@ import ( | ||||
| 	"fmt" | ||||
| 	"os" | ||||
|  | ||||
| 	cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger" | ||||
| 	lp "github.com/ClusterCockpit/cc-energy-manager/pkg/cc-message" | ||||
| 	cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger" | ||||
| 	"golang.org/x/sys/unix" | ||||
|  | ||||
| 	"encoding/json" | ||||
|   | ||||
| @@ -9,8 +9,8 @@ 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" | ||||
| ) | ||||
|  | ||||
| // Konstante für den Pfad zu /proc/diskstats | ||||
|   | ||||
| @@ -12,8 +12,8 @@ import ( | ||||
| 	"strings" | ||||
| 	"time" | ||||
|  | ||||
| 	cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger" | ||||
| 	lp "github.com/ClusterCockpit/cc-energy-manager/pkg/cc-message" | ||||
| 	cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger" | ||||
| ) | ||||
|  | ||||
| const MEMSTATFILE = "/proc/meminfo" | ||||
|   | ||||
| @@ -9,8 +9,8 @@ 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" | ||||
| ) | ||||
|  | ||||
| // These are the fields we read from the JSON configuration | ||||
|   | ||||
| @@ -10,8 +10,8 @@ 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" | ||||
| ) | ||||
|  | ||||
| type NUMAStatsCollectorConfig struct { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user