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

Expose monitor to allow attaching to a particular server #18

Open
dcowden opened this issue May 4, 2018 · 0 comments
Open

Expose monitor to allow attaching to a particular server #18

dcowden opened this issue May 4, 2018 · 0 comments

Comments

@dcowden
Copy link

dcowden commented May 4, 2018

For security reasons, we need to run our monitoring endpoints on a separate port.

We use appmetrics-dash, which allows us to create a new server, and host dashboard on that server:

	let metricsServer = http.createServer();
        metricsServer.listen(3030);
	dash.monitor({
		server: metricsServer,
		appmetrics: appmetrics
	});

This option is not available with appmetrics-prometheus, evidently by design

We can workaround this limitation by organizing our code to create the monitoring server after the main server, but this is annoying. I expect to be able to do :

        prometheus.monitor({
                server: myServer,
		appmetrics: appmetrics
	})
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant