Skip to content

Plugin based on express-actuator to work with spring-boot-admin

Notifications You must be signed in to change notification settings

adamatti/express-actuator-alt

Repository files navigation

Plugin based on express-actuator to work with spring-boot-admin

Sample

const actuator = require("express-actuator-alt")({
    appName: "Sample Node App",
    baseUrl: `http://localhost:${port}`,
    managementUrl: "/management",
    adminUrl: "http://localhost:8080",
    adminPollingInterval: 1000
})

app.use("/management",actuator)

Options

Variable

Description

Default Value

appName

The application name to be published to admin

Unknown

adminPollingInterval

Interval to register on admin in milliseconds

10000

adminUrl

Admin url

baseUrl

The app url. Need to be a valid url to be called by admin (external url)

managementUrl

Next steps

  • Implement more features (e.g. trace?)

  • Get some varibles by default (e.g. baseUrl)