Skip to content

Commit

Permalink
feat: prometheus (#51)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: upgrade @microfleet/core to 13.x.x series
  • Loading branch information
afoninsky authored and AVVS committed Feb 10, 2019
1 parent d87feb8 commit 70c2bf2
Show file tree
Hide file tree
Showing 6 changed files with 1,223 additions and 1,419 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
"preparecommitmsg": "./node_modules/@makeomatic/deploy/git-hooks/prepare-commit-msg $GIT_PARAMS"
},
"dependencies": {
"@microfleet/core": "^10.11.0",
"@microfleet/core": "^13.6.0",
"@microfleet/transport-amqp": "^13.1.2",
"@microfleet/validation": "^8.1.1",
"bluebird": "^3.5.2",
"bn.js": "^4.11.6",
"boom": "^7.2.0",
Expand All @@ -35,8 +36,8 @@
"lodash": "^4.17.11",
"moment": "^2.22.2",
"ms-conf": "^3.3.0",
"ms-validation": "^7.2.0",
"pg": "^7.5.0",
"prom-client": "^11.2.1",
"raven": "^2.6.4",
"request": "^2.88.0",
"request-promise": "^4.2.2",
Expand Down
1 change: 1 addition & 0 deletions src/configs/core.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exports.name = 'social';
1 change: 1 addition & 0 deletions src/configs/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ module.exports = {
'amqp',
'http',
'knex',
'prometheus',
],
};
2 changes: 1 addition & 1 deletion src/configs/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
},
extensions: {
enabled: ['postRequest', 'preRequest', 'preResponse'],
register: [auditLog],
register: [auditLog()],
},
},
};
5 changes: 2 additions & 3 deletions src/social.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const merge = require('lodash/merge');
const MService = require('@microfleet/core');
const { Microfleet, ConnectorsTypes } = require('@microfleet/core');
const Promise = require('bluebird');
const { NotFoundError } = require('common-errors');

Expand All @@ -13,9 +13,8 @@ const Instagram = require('./services/instagram');
const addUpsert = require('./utils/knex/upsert');

const services = new WeakMap();
const { ConnectorsTypes } = MService;

class Social extends MService {
class Social extends Microfleet {
static defaultConfig = conf.get('/', {
env: process.env.NODE_ENV,
});
Expand Down
Loading

0 comments on commit 70c2bf2

Please sign in to comment.