diff --git a/exporter/metric/metric.go b/exporter/metric/metric.go index 61c1aeaf9..86c7d136b 100644 --- a/exporter/metric/metric.go +++ b/exporter/metric/metric.go @@ -267,6 +267,10 @@ func (me *metricExporter) exportTimeSeries(ctx context.Context, cps export.Check return nil }) + if len(tss) == 0 { + return nil + } + if aggError != nil { if me.o.onError != nil { me.o.onError(aggError)