Skip to content

Commit

Permalink
added ability to set prom path
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallen23 committed Oct 9, 2018
1 parent af9a9be commit 7413424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/default-envs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ envVars:
routePrefix: "{{ getEnv('ROUTE_PREFIX', getEnv('PATH_PREFIX', '')) }}"
healthToken: "{{ getEnv('HEALTH_TOKEN', false) }}"
enableProm: '{{ truthy(ENV.ENABLE_PROM)}}'
promPath: "{{ getEnv('PROM_PATH', '/metrics') }}"
forceHttps: '{{ truthy(getEnv("FORCE_HTTPS", false)) }}'
logRequests: '{{ truthy(ENV.ACCESS_LOGS) }}'
sentryDsn: '{{getEnv("SENTRY_DSN", "")}}'
1 change: 1 addition & 0 deletions conf/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ plugins:
auth: false
hapi-prom:
_enabled: "{{ envVars.enableProm }}"
metricsPath: "{{ envVars.promPath }}"
hapi-logr:
unhandledRejection: true
uncaughtException: true
Expand Down

0 comments on commit 7413424

Please sign in to comment.