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

Commit

Permalink
Add keymetrics.io support
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Jun 5, 2017
1 parent ceedf71 commit 9cb0e06
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 2 deletions.
1 change: 1 addition & 0 deletions config.defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ui: hypercloud-ui-vanilla
sites: false
rateLimiting: true
defaultDiskUsageLimit: 100mb
pm2: false

# processing jobs
jobs:
Expand Down
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ var customSanitizers = require('./lib/sanitizers')
var packageJson = require('./package.json')

module.exports = function (config) {
if (config.pm2) {
var pmx = require('pmx').init({
http : true, // HTTP routes logging (default: true)
ignore_routes : [], // Ignore http routes with this pattern (Default: [])
errors : true, // Exceptions logging (default: true)
custom_probes : true, // Auto expose JS Loop Latency and HTTP req/s as custom metrics
network : true, // Network monitoring at the application level
ports : true // Shows which ports your app is listening on (default: false)
});
}

addConfigHelpers(config)
var cloud = new Hypercloud(config)
cloud.version = packageJson.version
Expand Down
57 changes: 55 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"nodemailer-ses-transport": "^1.5.0",
"nodemailer-stub-transport": "^1.1.0",
"pauls-dat-api": "^4.2.1",
"pmx": "^1.2.0",
"pretty-bytes": "^4.0.2",
"range-parser": "^1.2.0",
"request": "^2.79.0",
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ hostname: hypercloud.local # the hostname of your service
port: 8080 # the port to run the service on
rateLimiting: true # rate limit the HTTP requests?
defaultDiskUsageLimit: 100mb # default maximum disk usage for each user
pm2: false # set to true if you're using https://keymetrics.io/
```
#### Lets Encrypt
Expand Down

0 comments on commit 9cb0e06

Please sign in to comment.