Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding seperate metrics server #54

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hsingh6764
Copy link

No description provided.

@hsingh6764 hsingh6764 force-pushed the seperate-metrics-server branch from e739ae9 to 71e6891 Compare August 4, 2018 21:36
@hsingh6764 hsingh6764 force-pushed the seperate-metrics-server branch from 05bf71e to 41da576 Compare August 6, 2018 14:44
Copy link
Owner

@roylines roylines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please extend the tests to test for the additional server option, and I will gladly merge.

lib/express.js Outdated
@@ -12,7 +12,8 @@ function middleware (request, response, done) {

function instrument (server, options) {
server.use(middleware)
server.get(options.url, (req, res) => {
let mertricsEndpointServer = options.metricsServer || server;
mertricsEndpointServer.get(options.url, (req, res) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix spelling

@@ -3,7 +3,8 @@ const metrics = require('./metrics')
function plugin (options) {
var plugin = {
register: (server, o, done) => {
server.route({
let mertricsEndpointServer = options.metricsServer || server;
mertricsEndpointServer.route({
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix spelling

lib/http.js Outdated
@@ -18,7 +18,8 @@ function observeMetrics (request, response) {
}

function instrument (server, options) {
server.on('request', (request, response) => {
let mertricsEndpointServer = options.metricsServer || server;
mertricsEndpointServer.on('request', (request, response) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix spelling

package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "epimetheus",
"version": "0.0.1",
"version": "1.0.56",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please leave version as 0.0.1 as it is automagically set by CI

@roylines
Copy link
Owner

Happy to merge this pull request if you could please add a couple of tests and fix the spelling mistakes. Thanks for the contribution.

@hsingh6764 hsingh6764 force-pushed the seperate-metrics-server branch from 1f71bbb to b08c313 Compare August 21, 2018 17:32
@hsingh6764
Copy link
Author

@roylines please take a look again

@roylines
Copy link
Owner

@hsingh6764 there are conflicts to be resolved. Would you please be able to sort.

@brandonros
Copy link

Can this get merged + published to NPM please?

@hsingh6764
Copy link
Author

Can this be merged?

@yciabaud
Copy link

Please...

@guillomep
Copy link

@roylines please merged this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants