Skip to content

Commit

Permalink
PMM-12375 follow up on review
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Oct 2, 2023
1 parent de16f65 commit 775ef7c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions managed/services/agents/service_info_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ func (c *ServiceInfoBroker) GetInfoFromService(ctx context.Context, q *reform.Qu
}
}()

// External exporters and haproxy do not support this functionality.
if service.ServiceType == models.ExternalServiceType || service.ServiceType == models.HAProxyServiceType {
return nil
}

pmmAgentID := pointer.GetString(agent.PMMAgentID)
isSibSupported, err := isServiceInfoBrokerSupported(q, pmmAgentID)
if err != nil {
Expand All @@ -143,11 +148,6 @@ func (c *ServiceInfoBroker) GetInfoFromService(ctx context.Context, q *reform.Qu
return nil
}

// External exporters and haproxy do not support this functionality.
if service.ServiceType == models.ExternalServiceType || service.ServiceType == models.HAProxyServiceType {
return nil
}

pmmAgent, err := c.r.get(pmmAgentID)
if err != nil {
return err
Expand Down

0 comments on commit 775ef7c

Please sign in to comment.