Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.
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

Description

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
	})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions