forked from TrueCloudLab/frostfs-api-go
Fix bug with DecodeMetrics (empty metrics returns)
This commit is contained in:
parent
805ef243ee
commit
f557f24616
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ func DecodeMetrics(r *MetricsResponse) ([]*MetricFamily, error) {
|
||||||
if err := proto.Unmarshal(r.Metrics[i], mf); err != nil {
|
if err := proto.Unmarshal(r.Metrics[i], mf); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
metrics = append(metrics, mf)
|
||||||
}
|
}
|
||||||
|
|
||||||
return metrics, nil
|
return metrics, nil
|
||||||
|
|
Loading…
Reference in a new issue