Change to ccMessage from cc-lib

This commit is contained in:
Thomas Roehl
2025-02-24 18:29:27 +01:00
parent 0e57c8db1c
commit a476f1753e
54 changed files with 129 additions and 117 deletions
+2 -2
View File
@@ -10,9 +10,9 @@ import (
"sync"
"time"
lp "github.com/ClusterCockpit/cc-energy-manager/pkg/cc-message"
lp "github.com/ClusterCockpit/cc-lib/ccMessage"
cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger"
mp "github.com/ClusterCockpit/cc-metric-collector/pkg/messageProcessor"
mp "github.com/ClusterCockpit/cc-lib/messageProcessor"
)
const HTTP_RECEIVER_PORT = "8080"
+2 -2
View File
@@ -13,10 +13,10 @@ import (
"sync"
"time"
lp "github.com/ClusterCockpit/cc-energy-manager/pkg/cc-message"
lp "github.com/ClusterCockpit/cc-lib/ccMessage"
cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger"
"github.com/ClusterCockpit/cc-metric-collector/pkg/hostlist"
mp "github.com/ClusterCockpit/cc-metric-collector/pkg/messageProcessor"
mp "github.com/ClusterCockpit/cc-lib/messageProcessor"
)
type IPMIReceiverClientConfig struct {
+2 -2
View File
@@ -3,8 +3,8 @@ package receivers
import (
"encoding/json"
lp "github.com/ClusterCockpit/cc-energy-manager/pkg/cc-message"
mp "github.com/ClusterCockpit/cc-metric-collector/pkg/messageProcessor"
lp "github.com/ClusterCockpit/cc-lib/ccMessage"
mp "github.com/ClusterCockpit/cc-lib/messageProcessor"
)
type defaultReceiverConfig struct {
+2 -2
View File
@@ -6,9 +6,9 @@ import (
"fmt"
"os"
lp "github.com/ClusterCockpit/cc-energy-manager/pkg/cc-message"
lp "github.com/ClusterCockpit/cc-lib/ccMessage"
cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger"
mp "github.com/ClusterCockpit/cc-metric-collector/pkg/messageProcessor"
mp "github.com/ClusterCockpit/cc-lib/messageProcessor"
nats "github.com/nats-io/nats.go"
)
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"time"
cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger"
lp "github.com/ClusterCockpit/cc-energy-manager/pkg/cc-message"
lp "github.com/ClusterCockpit/cc-lib/ccMessage"
)
type PrometheusReceiverConfig struct {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"sync"
cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger"
lp "github.com/ClusterCockpit/cc-energy-manager/pkg/cc-message"
lp "github.com/ClusterCockpit/cc-lib/ccMessage"
)
var AvailableReceivers = map[string]func(name string, config json.RawMessage) (Receiver, error){
+2 -2
View File
@@ -13,10 +13,10 @@ import (
"sync"
"time"
lp "github.com/ClusterCockpit/cc-energy-manager/pkg/cc-message"
lp "github.com/ClusterCockpit/cc-lib/ccMessage"
cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger"
"github.com/ClusterCockpit/cc-metric-collector/pkg/hostlist"
mp "github.com/ClusterCockpit/cc-metric-collector/pkg/messageProcessor"
mp "github.com/ClusterCockpit/cc-lib/messageProcessor"
// See: https://pkg.go.dev/github.com/stmcginnis/gofish
"github.com/stmcginnis/gofish"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
cclog "github.com/ClusterCockpit/cc-metric-collector/pkg/ccLogger"
mp "github.com/ClusterCockpit/cc-metric-collector/pkg/messageProcessor"
mp "github.com/ClusterCockpit/cc-lib/messageProcessor"
)
// SampleReceiver configuration: receiver type, listen address, port