mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-10 03:38:12 +00:00
fix tagname for graphite
This commit is contained in:
parent
7779f65869
commit
00acfbdf86
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ module.exports = CompileManager =
|
|||
injectDraftModeIfRequired (error) ->
|
||||
return callback(error) if error?
|
||||
timer = new Metrics.Timer("run-compile")
|
||||
# find the image tag to log it as a metric
|
||||
tag = request.imageName?.match(/:(.*)/)?[1] or "default"
|
||||
# find the image tag to log it as a metric, e.g. 2015.1 (convert . to - for graphite)
|
||||
tag = request.imageName?.match(/:(.*)/)?[1]?.replace(/\./g,'-') or "default"
|
||||
tag = "other" if project_id?.match(/^[0-9a-f]{24}$/) # exclude smoke test
|
||||
Metrics.inc("compiles")
|
||||
Metrics.inc("compiles-with-image.#{tag}")
|
||||
|
|
Loading…
Add table
Reference in a new issue