Merge pull request #270 from prometheus/beorn7/fixes
graphite: Adjust ExtractSamples call to new interface
This commit is contained in:
commit
74f9ce27f6
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue