$9.99
Description
Buy this Site Monitor Micro Service – Java – Spring Boot – Vaadin Web Application. It has a scheduler that opens your sites every hour and if it fails – it sends an email.
The actual mail sending is not through SMPT, but is produced/messaged with kafka. You could by the consumer email-sender-micro-service at https://programtom.com/dev/product/email-sender-micro-service-kafka-consumer-source-code/.
Prerequisites of the Site Monitor Micro Service as Jar – Docker Image
The micro service is using
- Maria DB as Database
- It auto-generates the db scheme with JPA/Spring Repository
- It has simple CRUD interface over the sites that will be monitored and the – is online checks.
- docker file & setup. If you would like to run it outside docker – just change the configuration from host.docker.internal to localhost
You will also need Kafka running – as this micro service communicates with the email sender on it.
Building the Micro Service
You will receive site_monitor_app source code. You could build it with:
mvn clean package -Pproduction -Dvaadin.force.production.build=true
and package it to image with the Dockerfile + the command –
docker build --build-arg JAR_FILE=target/*.jar -t com.programtom.site_monitor_app/Application. The command are included as scripts.
Administrative Interface
Open the Web Admin Interace at http://localhost:8701/site_monitor_app (or site_monitor_app-1.0-SNAPSHOT if the generated war is deployed).
You could login with hard-coded login as – it is intended to be hidden in your local network. You have the power to extend it and add your authentication. For publicly facing apps I personally intend to use Google Login Integration.

The main view of this web app is list of sites that it will check. The pinging is in every hour. Additionally on every 24 hours you will recieve summary of the pings.

This is the basic CRUD operation on the sites with
- url it will try to open
- email where the application will report it findings.

Site Opening Checks
Every site has it sitemodels (attempts to open the site). If it fails to open – it will send email and record it.

If all is OK – the application will record the success
- timestamp,
- milliseconds that it took to open it
- the result (most likely html).

Mail Messages from Site Monitoring
Here is an example of opning my app. As you see in the picture – at the end of the year 2023 there was an issue and I’ve got several emails urging me to fix the issue.

When all is OK – I am receiving standard statistics with 24 OK requests.

Additional bonus of this is – if I don’t recieve such email – this indicates that there is an issue with the site monitoring application and I need to check that.
![Site Monitor Micro Service [Source Code]](https://programtom.com/dev/wp-content/uploads/2023/12/Create-a-Web-of-Connections.png)