io.zeebe:zeebe-simple-monitor-app

This pom defines the required plugins and profiles to allow a camunda release build. Inherit this pom when you want to release your project into the camunda nexus and/or maven central.

License

License

GroupId

GroupId

io.zeebe
ArtifactId

ArtifactId

zeebe-simple-monitor-app
Last Version

Last Version

0.17.0
Release Date

Release Date

Type

Type

jar
Description

Description

This pom defines the required plugins and profiles to allow a camunda release build. Inherit this pom when you want to release your project into the camunda nexus and/or maven central.
Project Organization

Project Organization

Camunda Services GmbH

Download zeebe-simple-monitor-app

How to add to project

<!-- https://jarcasting.com/artifacts/io.zeebe/zeebe-simple-monitor-app/ -->
<dependency>
    <groupId>io.zeebe</groupId>
    <artifactId>zeebe-simple-monitor-app</artifactId>
    <version>0.17.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.zeebe/zeebe-simple-monitor-app/
implementation 'io.zeebe:zeebe-simple-monitor-app:0.17.0'
// https://jarcasting.com/artifacts/io.zeebe/zeebe-simple-monitor-app/
implementation ("io.zeebe:zeebe-simple-monitor-app:0.17.0")
'io.zeebe:zeebe-simple-monitor-app:jar:0.17.0'
<dependency org="io.zeebe" name="zeebe-simple-monitor-app" rev="0.17.0">
  <artifact name="zeebe-simple-monitor-app" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.zeebe', module='zeebe-simple-monitor-app', version='0.17.0')
)
libraryDependencies += "io.zeebe" % "zeebe-simple-monitor-app" % "0.17.0"
[io.zeebe/zeebe-simple-monitor-app "0.17.0"]

Dependencies

compile (16)

Group / Artifact Type Version
io.zeebe : zeebe-client-java jar
io.zeebe.hazelcast : zeebe-hazelcast-connector jar 0.7.0
com.h2database : h2 jar 1.4.200
org.springframework.boot : spring-boot-starter-web jar
org.springframework.boot : spring-boot-starter-data-jpa jar
org.springframework.boot : spring-boot-starter-mustache jar
org.springframework.boot : spring-boot-starter-websocket jar
javax.interceptor : javax.interceptor-api jar 1.2.2
org.webjars : webjars-locator jar 0.38
org.webjars : bootstrap jar 4.4.1
org.webjars.bower : popper.js jar 1.16.0
org.webjars : jquery jar 3.4.1
org.webjars.bower : bpmn-js jar 0.26.6
org.webjars : sockjs-client jar 1.1.2
org.webjars : stomp-websocket jar 2.3.3
org.springframework.boot : spring-boot-devtools Optional jar

test (1)

Group / Artifact Type Version
junit : junit jar 4.13

Project Modules

There are no modules declared in this project.

Zeebe Simple Monitor

License

A monitoring application for Zeebe. It is designed for developers to

  • get in touch with Zeebe and workflow execution (BPMN)
  • test workflows manually
  • provide insides on how workflows are executed

The application imports the data from Zeebe using the Hazelcast exporter. It aggregates the data and stores it into a (in-memory) database. The data is displayed on server-side rendered HTML pages.

how-it-works

Install

Docker

The docker image for the worker is published to DockerHub.

docker pull camunda/zeebe-simple-monitor:latest
  • ensure that a Zeebe broker is running with a Hazelcast exporter (>= 0.8.0-alpha1)
  • forward the Hazelcast port to the docker container (default: 5701)
  • configure the connection to the Zeebe broker by setting zeebe.client.broker.contactPoint (default: localhost:26500)
  • configure the connection to Hazelcast by setting zeebe.client.worker.hazelcast.connection (default: localhost:5701)

For a local setup, the repository contains a docker-compose file. It starts a Zeebe broker with the Hazelcast exporter and the application.

mvn clean install -DskipTests
cd docker
docker-compose up

Go to http://localhost:8082

Manual

  1. Download the latest application JAR (zeebe-simple-monitor-%{VERSION}.jar )

  2. Start the application java -jar zeebe-simple-monitor-{VERSION}.jar

  3. Go to http://localhost:8082

Configuration

The application is a Spring Boot application that uses the Spring Zeebe Starter. The configuration can be changed via environment variables or an application.yaml file. See also the following resources:

By default, the port is set to 8082 and the database is only in-memory (i.e. not persistent).

zeebe:

  client:
    broker.contactPoint: 127.0.0.1:26500
    security.plaintext: true
    
    worker:
      hazelcast:
        connection: localhost:5701
        connectionTimeout: PT30S

spring:

  datasource:
    url: jdbc:h2:mem:zeebe-monitor;DB_CLOSE_DELAY=-1
    username: sa
    password:
    driverClassName: org.h2.Driver

  jpa:
    database-platform: org.hibernate.dialect.H2Dialect
    hibernate:
      ddl-auto: update

server:
  port: 8082
  servlet:
    context-path: /

Change the Context-Path

The context-path or base-path of the application can be changed using the following property:

server:
  servlet:
    context-path: /monitor/

It is then available under http://localhost:8082/monitor.

Change the Database

For example, using PostgreSQL:

  • change the following database configuration settings
- spring.datasource.url=jdbc:postgresql://db:5432/postgres
- spring.datasource.username=postgres
- spring.datasource.password=zeebe
- spring.datasource.driverClassName=org.postgresql.Driver
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
  • add the database driver JAR to the classpath
    • using docker, the JAR should be mounted to the /app/libs/ folder (e.g. /app/libs/postgresql-42.2.12.jar)
Full docker-compose.yml with PostgreSQL

version: "2"

networks:
  zeebe_network:
    driver: bridge

services:
  zeebe:
    container_name: zeebe_broker
    image: camunda/zeebe:0.23.0
    environment:
      - ZEEBE_LOG_LEVEL=debug
    ports:
      - "26500:26500"
      - "9600:9600"
      - "5701:5701"
    volumes:
      - ../target/exporter/zeebe-hazelcast-exporter.jar:/usr/local/zeebe/exporters/zeebe-hazelcast-exporter.jar
      - ./application.yaml:/usr/local/zeebe/config/application.yaml
    networks:
      - zeebe_network
      
  monitor:
    container_name: zeebe-simple-monitor
    image: camunda/zeebe-simple-monitor:latest
    environment:
      - zeebe.client.broker.contactPoint=zeebe:26500
      - zeebe.worker.hazelcast.connection=zeebe:5701
      - spring.datasource.url=jdbc:postgresql://db:5432/postgres
      - spring.datasource.username=postgres
      - spring.datasource.password=zeebe
      - spring.datasource.driverClassName=org.postgresql.Driver
      - spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
    volumes:
      - ./lib/postgresql-42.2.12.jar:/app/libs/postgresql-42.2.12.jar
    ports:
      - "8082:8082"
    depends_on:
      - zeebe
      - db
    networks:
      - zeebe_network

  db:
    image: postgres:12.2
    restart: always
    environment:
      POSTGRES_PASSWORD: zeebe
    volumes:
      - database-data:/var/lib/postgresql/data/
    networks:
      - zeebe_network

volumes:
  database-data:

Build from Source

Build with Maven

mvn clean install

Code of Conduct

This project adheres to the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].

License

Apache License, Version 2.0

About

screencast

io.zeebe
This organization contains the internal repositories of the Zeebe development team. Please visit https://github.com/camunda-cloud/zeebe for the Zeebe repository

Versions

Version
0.17.0
0.17.0-alpha1
0.16.0
0.15.0
0.14.0