This commit is contained in:
mr
2024-10-02 14:38:51 +02:00
parent 6ab737c915
commit 04a157ba64
4 changed files with 18 additions and 13 deletions

View File

@@ -9,11 +9,11 @@ import (
)
type LocalMonitor struct {
LokiURL string
KubeURL string
ExecutionID string
Duration int
Logger zerolog.Logger
LokiURL string
KubeURL string
ExecutionID string
Duration int
Logger zerolog.Logger
}
func (lm *LocalMonitor) LaunchLocalMonitor() {
@@ -35,7 +35,6 @@ func (lm *LocalMonitor) execLocalKube() {
args = append(args, "-t", fmt.Sprintf("%d", lm.Duration))
}
cmd := exec.Command(conf.GetConfig().MonitorPath, args...)
fmt.Println("CMD", cmd)
err := cmd.Start()
if err != nil {
lm.Logger.Error().Msg("Could not start oc-monitor for " + lm.ExecutionID + " : " + err.Error())
@@ -43,6 +42,4 @@ func (lm *LocalMonitor) execLocalKube() {
}
// TODO : implement this
func (lm *LocalMonitor) execRemoteKube() {
}
func (lm *LocalMonitor) execRemoteKube() {}