Skip to content

Commit

Permalink
Fix bug in pushgateway url
Browse files Browse the repository at this point in the history
Instead of "instance" metrices where pushed to "instances", therefore, instance tag was written empty
  • Loading branch information
pmoncadaisla committed Aug 1, 2017
1 parent a9bc655 commit fa87a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (p *Prometheus) getPushGatewayUrl() string {
if p.Ppg.Job == "" {
p.Ppg.Job = "gin"
}
return p.Ppg.PushGatewayURL + "/metrics/job/" + p.Ppg.Job + "/instances/" + h
return p.Ppg.PushGatewayURL + "/metrics/job/" + p.Ppg.Job + "/instance/" + h
}

func (p *Prometheus) sendMetricsToPushGateway(metrics []byte) {
Expand Down

0 comments on commit fa87a91

Please sign in to comment.