mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(POOLER-160) Add Prometheus to pooler startup
This is a re-architect of the vmpooler initialisation code to: 1. Allow an API service for both manager and the api 2. Add the Prometheus endpoints to the web service. Needed to change the way the Rack Service is started as instantiating using ".New" leads to a failure to initialise the http Stats collection. 3. Selectively load the pooler api and/or Prometheus endpoints. 4. Rework API Spec tests for revised API loading. Needed to tidy up the initialisation and perform a reset! after each test to avoid "leaks" and dependencies between the tests.
This commit is contained in:
parent
ffab7def9e
commit
bbd76bde4c
15 changed files with 166 additions and 88 deletions
|
|
@ -24,6 +24,7 @@ Gem::Specification.new do |s|
|
|||
s.add_dependency 'redis', '~> 4.1'
|
||||
s.add_dependency 'rbvmomi', '~> 2.1'
|
||||
s.add_dependency 'sinatra', '~> 2.0'
|
||||
s.add_dependency 'prometheus-client', '~> 2.0'
|
||||
s.add_dependency 'net-ldap', '~> 0.16'
|
||||
s.add_dependency 'statsd-ruby', '~> 1.4'
|
||||
s.add_dependency 'connection_pool', '~> 2.2'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue