Skip to content

Commit

Permalink
fix: push sample
Browse files Browse the repository at this point in the history
  • Loading branch information
710leo committed Oct 13, 2023
1 parent 68732d6 commit f93e2ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pushgw/router/fns.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (rt *Router) debugSample(remoteAddr string, v *prompb.TimeSeries) {

func (rt *Router) ForwardByIdent(clientIP string, ident string, v *prompb.TimeSeries) {
rt.BeforePush(clientIP, v)
rt.Writers.PushSample(ident, v)
rt.Writers.PushSample(ident, *v)
}

func (rt *Router) ForwardByMetric(clientIP string, metric string, v *prompb.TimeSeries) {
Expand All @@ -111,7 +111,7 @@ func (rt *Router) ForwardByMetric(clientIP string, metric string, v *prompb.Time
} else {
hashkey = metric[0:1]
}
rt.Writers.PushSample(hashkey, v)
rt.Writers.PushSample(hashkey, *v)
}

func (rt *Router) BeforePush(clientIP string, v *prompb.TimeSeries) {
Expand Down

0 comments on commit f93e2ad

Please sign in to comment.