ServicePulse provides real-time production monitoring for distributed applications. It monitors the health of a system's endpoints, detects processing errors, sends failed messages for reprocessing, and ensures the specific environment's needs are met, all in one consolidated dashboard.
ServicePulse is part of the Particular Service Platform, which includes NServiceBus and tools to build, monitor, and debug distributed systems.
See the ServicePulse documentation for more information.
ServicePulse mainly presents data provided by ServiceControl and ServiceControl Monitoring instances.
The URLs for both services can be set in src/Frontend/public/js/app.constants.js.
ServicePulse uses npm and Bower as package managers. For the solution to work, dependencies must be downloaded before launching the ServicePulse website.
Install the following dependencies if you don't have them installed yet.
- Git for Windows
- Node.js
- NOTE: It is good practice when installing or updating node.js on your local environment also to check and make sure that the node.js version for the
ci.ymlandrelease.ymlworkflows match the version of your local environment. Look for the stepname: Set up Node.js
- NOTE: It is good practice when installing or updating node.js on your local environment also to check and make sure that the node.js version for the
Even though Visual Studio or Rider seem to be adequate IDEs for front-end development, they tend to be unreliable with the latest front-end frameworks, linting, and formatting. Because of that, we have extra recommendations to help you succeed even more at front-end development.
Navigate to ServicePulse\src\Frontend and:
- run
npm installto install all the npm dependencies - run the following command
npm run dev(this will host a dev server on port 5173 and start watching for changes in/Frontenddirectory)
If npm run dev fails with an error related to git submodules not being correctly configured, run the npm install command again to ensure all required dependencies are available, and then run npm run dev.
After doing the above steps, navigate to the URL presented by the execution of the Vue.js application to see the ServicePulse application.
The frontend automated tests utilize Vitest as the testing framework and testing-library for testing utilities. Vitest provide two modes: watch mode in the development environment and run mode in the CI environment by default. Watch mode instantly re-runs relevant tests upon file save, providing immediate feedback during development.
Before running test, ensure you've set up the development server. Navigate to ServicePulse\src\Frontend and run npm install to install all the npm dependencies.
Navigate to ServicePulse\src\Frontend and run:
npm run test:componentThis command runs all the component test files *.spcs.ts in the directory ServicePulse\src\Frontend\src and its subdirectories. With watch mode enabled it allows for efficient test development, as only the relevant tests are re-run on file save.
Navigate to ServicePulse\src\Frontend and run:
npm run test:applicationSimilar to component tests, this command runs all the application test files *.spcs.ts in the directory ServicePulse\src\Frontend\test and its subdirectories.
Navigate to ServicePulse\src\Frontend and run:
npm run test:coverageThis command generates a report indicating the percentage of statements, branches, function, and lines covered by tests. Additionally, it identifies uncovered line numbers.
dev- runsvitethat starts the development server doing hot reload over source filesbuild- runs build script that outputs files to..\appfolderlint- checks with eslint all vue, ts, and js filestype-check- runs TypeScript in no emit mode
test:application- runs all the application tests located in theFrontend/testfolder.test:component- runs tests all the component tests located in theFrontend/srcfolder and any subdirectories.test:coverage- runs the test coverage report on the files defined invitest.config.ts
It is possible to run ServicePulse directly via ServicePulse.Host.exe.
ServicePulse.Host.exe depends on a self-hosted web server. A URL ACL reservation must be set up before the project can run. Either run Visual Studio with Administrative privileges or run the following command to add the required URL ACL reservation:
add urlacl url=URLWhere URL is the configured URL on the local machine.
Execute the build script from the command line:
PowerShell -File .\build.ps1Note
It might be necessary to change the PowerShell execution policy using Set-ExecutionPolicy Unrestricted -scope UserPolicy
Build and run the ServicePulse.Host project in the IDE.
ServicePulse is supported on the following desktop browser versions:
- Chrome latest major version
- Edge latest stable version
- Firefox ESR current version
- Safari latest major version
A Dockerfile for ServicePulse resides within the src/ServicePulse folder. The container images are all built as part of the release workflow and staged in the Github Container Registry. For branches with PRs, the image will be tagged with the PR number, e.g. pr-1234.