Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit f012baf

Browse files
committed
fix ingestion bug
1 parent c366a1d commit f012baf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/ingest/format/defaulttsdb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ func (Ingester defaultTsdb) Ingest(tsdbAppender tsdb.Appender, event nuclio.Even
100100

101101
// append sample to metric
102102
if ref == 0 {
103-
ref, err = tsdbAppender.Add(labels, sampleTime, sample.Value.N)
103+
ref, err = tsdbAppender.Add(labels, sampleTime, *sample.Value.N)
104104
} else {
105-
err = tsdbAppender.AddFast(labels, ref, sampleTime, sample.Value.N)
105+
err = tsdbAppender.AddFast(labels, ref, sampleTime, *sample.Value.N)
106106
}
107107
if err != nil {
108108
return BadRequest(errors.Wrap(err, "Failed to add sample").Error())

0 commit comments

Comments
 (0)