diff --git a/state/service.go b/state/service.go index cd7b6850..343a8222 100644 --- a/state/service.go +++ b/state/service.go @@ -45,6 +45,7 @@ func DecodeMetrics(r *MetricsResponse) ([]*MetricFamily, error) { if err := proto.Unmarshal(r.Metrics[i], mf); err != nil { return nil, err } + metrics = append(metrics, mf) } return metrics, nil