diff --git a/monitor/service.go b/monitor/service.go index 6ae86756f9..5c73282449 100644 --- a/monitor/service.go +++ b/monitor/service.go @@ -172,7 +172,13 @@ func (s *Service) statistics() ([]*statistic, error) { if err != nil { continue } - statistics[i] = newStatistic(r.name, r.tags, stats) + + // If a registered client has no field data, don't include it in the results + if len(stats) == 0 { + continue + } + + statistics = append(statistics, newStatistic(r.name, r.tags, stats)) } return statistics, nil }