Skip to content

Commit

Permalink
fix: prometheusremotewrite wrong timestamp unit
Browse files Browse the repository at this point in the history
  • Loading branch information
hulucc committed Jan 29, 2022
1 parent deda716 commit 25611ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (s *Serializer) SerializeBatch(metrics []telegraf.Metric) ([]byte, error) {
// sample then we can skip over it.
m, ok := entries[metrickey]
if ok {
if metric.Time().Before(time.Unix(m.Samples[0].Timestamp, 0)) {
if metric.Time().Before(time.Unix(m.Samples[0].Timestamp/1000, 0)) {
continue
}
}
Expand Down

0 comments on commit 25611ae

Please sign in to comment.