app/vmselect: log the metric which trigger rollup result cache reset

This should help finding the source of stale metrics
This commit is contained in:
Aliaksandr Valialkin 2021-03-25 21:30:41 +02:00
parent c5618949a0
commit 9c2be144cf

View file

@ -1348,7 +1348,7 @@ func (mr *MetricRow) String() string {
if err := mn.unmarshalRaw(mr.MetricNameRaw); err == nil {
metricName = mn.String()
}
return fmt.Sprintf("MetricName=%s, Timestamp=%d, Value=%f\n", metricName, mr.Timestamp, mr.Value)
return fmt.Sprintf("%s (Timestamp=%d, Value=%f)", metricName, mr.Timestamp, mr.Value)
}
// Marshal appends marshaled mr to dst and returns the result.