github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/internal/operator/boom/application/applications/systemdmetricsexporter/prometheussystemdexporter.go (about) 1 package systemdmetricsexporter 2 3 import ( 4 toolsetslatest "github.com/caos/orbos/internal/operator/boom/api/latest" 5 "github.com/caos/orbos/internal/operator/boom/application/applications/systemdmetricsexporter/info" 6 "github.com/caos/orbos/internal/operator/boom/name" 7 ) 8 9 type prometheusSystemdExporter struct{} 10 11 func New() *prometheusSystemdExporter { 12 return &prometheusSystemdExporter{} 13 } 14 15 func (*prometheusSystemdExporter) GetName() name.Application { 16 return info.GetName() 17 } 18 19 func (*prometheusSystemdExporter) Deploy(toolsetCRDSpec *toolsetslatest.ToolsetSpec) bool { 20 return toolsetCRDSpec.SystemdMetricsExporter != nil && toolsetCRDSpec.SystemdMetricsExporter.Deploy 21 } 22 23 func (*prometheusSystemdExporter) GetNamespace() string { 24 return info.GetNamespace() 25 }