Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Adds version query to metric href
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxbat committed Nov 23, 2015
1 parent 998a891 commit cc47546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mgmt/rest/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,5 @@ func respondWithMetrics(host string, mets []core.CatalogedMetric, w http.Respons
}

func catalogedMetricURI(host string, mt core.CatalogedMetric) string {
return fmt.Sprintf("%s://%s/v1/metrics%s", protocolPrefix, host, core.JoinNamespace(mt.Namespace()))
return fmt.Sprintf("%s://%s/v1/metrics%s?version=%d", protocolPrefix, host, core.JoinNamespace(mt.Namespace()), mt.Version())
}

0 comments on commit cc47546

Please sign in to comment.