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

Expose monitor to allow attaching to a particular server #18

@dcowden

Description

@dcowden

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions