mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Fix regex for ondemand instances
It appears we renamed `/ondemand/` to `/ondemandvm/` at some point and, as a result, have not been stripping hostnames from that endpoint's metrics. This has caused issues with metrics collection due a very high cardinality.
This commit is contained in:
parent
45c14312b6
commit
7a1fc24685
2 changed files with 4 additions and 4 deletions
|
|
@ -113,7 +113,7 @@ module Vmpooler
|
|||
# Similarly, request IDs are also stripped from the /ondemand path.
|
||||
path
|
||||
.gsub(%r{/vm/.+$}, '/vm')
|
||||
.gsub(%r{/ondemand/.+$}, '/ondemand')
|
||||
.gsub(%r{/ondemandvm/.+$}, '/ondemandvm')
|
||||
.gsub(%r{/token/.+$}, '/token')
|
||||
.gsub(%r{/lib/.+$}, '/lib')
|
||||
.gsub(%r{/img/.+$}, '/img')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue