当前位置:首页 > Web开发 > 正文

使用zeebe DebugHttpExporter 查看zeebe 工作流信息

2024-03-31 Web开发

zeebe 提供了一个DebugHttpExporter 可以方便的查看部署以及wokrflow 运行信息
以下是一个简单的运行试用,,同时集成了prometheus,添加了一个简单的grafana dashboard

环境准备

docker-compose 文件

 

version: "3"

services:

   operate:

       image: camunda/operate:1.1.0

       ports:

           - "8080:8080"

       volumes:

           - "./application.yml:/usr/local/operate/config/application.yml"

   grafana:

       image: grafana/grafana

       ports:

           - "3000:3000"

   nginx-grpc-lb:

       image: openresty/openresty:alpine

       volumes:

       - "./nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf"

       ports:

       - "27500:26500"

   prometheus:

       image: prom/prometheus

       volumes:

           - "./prometheus.yml:/etc/prometheus/prometheus.yml"

       ports:

           - "9090:9090"

   broker-1:

       image: camunda/zeebe:${ZEEBE_VERSION:-latest}

       ports:

           - 26500:26500

           - 26501:26501

           - 5701:5701

           - 8000:8000

           - 9600:9600

       environment:

           - ZEEBE_LOG_LEVEL=${ZEEBE_LOG_LEVEL:-debug}

           - ZEEBE_NODE_ID=0

           - ZEEBE_PARTITIONS_COUNT=1

           - ZEEBE_CLUSTER_SIZE=1

           - ZEEBE_REPLICATION_FACTOR=1

       volumes:

           - ./broker_1:/usr/local/zeebe/data

           - ./zeebe.cfg.toml:/usr/local/zeebe/conf/zeebe.cfg.toml

   elasticsearch:

       image: elasticsearch:6.7.1

       container_name: elasticsearch

       environment:

           - "discovery.type=single-node"

       ulimits:

           memlock:

               soft: -1

               hard: -1

       ports:

           - 9200:9200

           - 9300:9300 # required for Performance Analyzer

 

 

operate 配置文件
application.yml 文件

 

# Operate configuration file

?

camunda.operate:

 # ELS instance to store Operate data

 elasticsearch:

   # Cluster name

   clusterName: elasticsearch

   # Host

   host: elasticsearch

   # Transport port

   port: 9200

 # Zeebe instance

 zeebe:

   # Broker contact point

   brokerContactPoint: broker-1:26500

 # ELS instance to export Zeebe data to

 zeebeElasticsearch:

   # Cluster name

   clusterName: elasticsearch

   # Host

   host: elasticsearch

   # Transport port

   port: 9200

   # Index prefix, configured in Zeebe Elasticsearch exporter

   prefix: zeebe-record

logging:

 level:

   ROOT: INFO

   org.camunda.operate: DEBUG

#Spring Boot Actuator endpoints to be exposed

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/40984.html