OtterJet is a project designed to provide a visualization of messages from a NATS JetStream server. Offering a WEB interface for interacting with NATS JetStream servers. This project is particularly useful for developers who need to monitor traffic during development.
- Java 17 or higher
- NATS JetStream server
- Reads messages from a NATS JetStream server.
- Deserializes messages based on the specified mode (protobuf or plaintext for now).
- Filters messages based on subject, type, and body content.
- Displays monitoring information in a web interface.
- Clone the repository.
- Navigate to the project directory.
- Run
mvn clean install
to build the project. - Configure your NATS JetStream server details in the
application.properties
file.
The following properties need to be set in the application.properties
file:
read.mode
: The mode to use for deserialization (eitherproto
orplaintext
).read.subject
: The subject to read messages from.read.proto.pathToDescriptor
: The path to the protobuf descriptor file (only required ifread.mode
is set toproto
).read.store.limit
: The maximum number of messages to store in memory. Default - 10000read.startDate
: Optional date from which to start reading messages.
After building the project, you can run it using the command mvn spring-boot:run
.
If you encounter any issues while setting up or running the project, please check the following:
- Ensure that your NATS JetStream server is running and accessible.
- Verify that the configuration properties in the
application.properties
file are correct.
All suggestions are welcome :)
Copyright (C) 2023-2024 SoftwareMill https://softwaremill.com.