graphite: Adjust ExtractSamples call to new interface

This commit is contained in:
beorn7 2017-01-08 20:55:34 +01:00
parent 575f371f78
commit 60e61927fc
1 changed files with 4 additions and 1 deletions

View File

@ -182,9 +182,12 @@ func (b *Bridge) Push() error {
}
func writeMetrics(w io.Writer, mfs []*dto.MetricFamily, prefix string, now model.Time) error {
vec := expfmt.ExtractSamples(&expfmt.DecodeOptions{
vec, err := expfmt.ExtractSamples(&expfmt.DecodeOptions{
Timestamp: now,
}, mfs...)
if err != nil {
return err
}
buf := bufio.NewWriter(w)
for _, s := range vec {