forked from mirror/client_golang
graphite: Adjust ExtractSamples call to new interface
This commit is contained in:
parent
575f371f78
commit
60e61927fc
|
@ -182,9 +182,12 @@ func (b *Bridge) Push() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func writeMetrics(w io.Writer, mfs []*dto.MetricFamily, prefix string, now model.Time) 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,
|
Timestamp: now,
|
||||||
}, mfs...)
|
}, mfs...)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
buf := bufio.NewWriter(w)
|
buf := bufio.NewWriter(w)
|
||||||
for _, s := range vec {
|
for _, s := range vec {
|
||||||
|
|
Loading…
Reference in New Issue