@@ -129,7 +129,7 @@ func (e *ExporterHostSyncer) filterExporterInstances(hostName string, exporterIn
129129}
130130
131131// processExporterInstance processes a single exporter instance
132- func (e * ExporterHostSyncer ) processExporterInstance (exporterInstance * api.ExporterInstance , hostSsh ssh.HostManager ) error {
132+ func (e * ExporterHostSyncer ) processExporterInstance (exporterInstance * api.ExporterInstance , hostSsh ssh.HostManager , renderedHost * api. ExporterHost ) error {
133133 if isDead , deadAnnotation := isExporterInstanceDead (exporterInstance ); isDead {
134134 fmt .Printf (" 📟 Exporter instance: %s skipped - dead: %s\n " , exporterInstance .Name , deadAnnotation )
135135 return nil
@@ -149,6 +149,7 @@ func (e *ExporterHostSyncer) processExporterInstance(exporterInstance *api.Expor
149149 return fmt .Errorf ("service parameters not found for %s" , spRef )
150150 }
151151 et .SetServiceParameters (serviceParameters )
152+ et .SetRenderedExporterHost (renderedHost )
152153
153154 _ , err = et .RenderTemplateLabels ()
154155 if err != nil {
@@ -241,7 +242,7 @@ func (e *ExporterHostSyncer) processExporterInstancesAndBootc(exporterInstances
241242
242243 // Process exporter instances
243244 for _ , exporterInstance := range exporterInstances {
244- if err := e .processExporterInstance (exporterInstance , hostSsh ); err != nil {
245+ if err := e .processExporterInstance (exporterInstance , hostSsh , renderedHost ); err != nil {
245246 fmt .Printf (" ❌ Failed to process %s: %v\n " , exporterInstance .Name , err )
246247 * retryQueue = append (* retryQueue , RetryItem {
247248 ExporterInstance : exporterInstance ,
@@ -343,7 +344,7 @@ func (e *ExporterHostSyncer) processGlobalRetryQueue(retryQueue []RetryItem) err
343344 }
344345 } else {
345346 // This was an exporter instance failure
346- if err := e .processExporterInstance (retryItem .ExporterInstance , hostSsh ); err != nil {
347+ if err := e .processExporterInstance (retryItem .ExporterInstance , hostSsh , retryItem . RenderedHost ); err != nil {
347348 fmt .Printf ("❌ Retry failed for %s on %s: %v\n " , retryItem .ExporterInstance .Name , retryItem .HostName , err )
348349 e .addToRetryQueue (& retryItem , err , & nextRetryQueue )
349350 } else {
0 commit comments