diff --git a/lib/promutils/duration.go b/lib/promutils/duration.go index 2fc57c52e..441bd2011 100644 --- a/lib/promutils/duration.go +++ b/lib/promutils/duration.go @@ -19,7 +19,7 @@ func NewDuration(d time.Duration) *Duration { } // MarshalYAML implements yaml.Marshaler interface. -func (pd Duration) MarshalYAML() (interface{}, error) { +func (pd *Duration) MarshalYAML() (interface{}, error) { return pd.D.String(), nil }