Pulsar-Manager安装部署

Apache Pulsar 是下一代分布式消息发布订阅系统,当前 Pulsar 的发展势头非常迅猛,但作为基础架构组件,Pulsar 周边生态仍有完善空间。

此前,Pulsar 已有监控工具 Dashboard (http://pulsar.apache.org/docs/en/administration-dashboard/),但它侧重于对 Pulsar 的简单监控(例如,搜集并展示 Tenants、Namespaces、Topics 和 Subscriptions 等监控信息),无法进行高阶管理(例如,对 Tenant、Namespace 和 Topic 等进行增加、删除、更新等操作),尤其是集群数量较多时,仅通过命令行工具 pulsar-admin 进行管理,效果却不尽人意,而 Apache Pulsar Manager 正是对这一空白的补充。

Apache Pulsar Manager 是一个基于网页的 GUI 管理和监控工具,帮助 Pulsar 管理员和用户管理和监控 Tenant、Namespace、Topic、Subscription、Broker 和 Cluster 等,并支持动态配置多种环境。

安装Pulsar-Manager

#docker安装

#yum install -y docker 

#systemctl start docker

#systemctl enable docker

下载镜像并安装Pulsar-Manager

#docker pull apachepulsar/pulsar-manager:v0.2.0

#docker run -dit \

    -p 9527:9527 -p 7750:7750 \

    -e SPRING_CONFIGURATION_FILE=/pulsar-manager/pulsar-manager/application.properties \

    apachepulsar/pulsar-manager:v0.2.0

初始化账号

需要使用curl命令添加一个账户

#CSRF_TOKEN=$(curl http://localhost:7750/pulsar-manager/csrf-token)
image.png

#curl \

   -H 'X-XSRF-TOKEN: $CSRF_TOKEN' \

   -H 'Cookie: XSRF-TOKEN=$CSRF_TOKEN;' \

   -H "Content-Type: application/json" \

   -X PUT http://localhost:7750/pulsar-manager/users/superuser \

   -d '{"name": "admin", "password": "apachepulsar", "description": "test", "email": "[email protected]"}'


image.png


调用完成之后,可以使用用户名admin,密码apachepulsar登录pulsar manager  

使用浏览器http://xx:xx:xx:xx:9527

image.png

添加environment

如需管理多集群,只需要配置 serviceURL,即能在多个环境间自由切换。

image.png

  • 管理 Tenant

支持对 Tenant 进行增加、修改和删除等操作。

image.png

  • 管理 Namespace

支持对 Namespace 进行增加、删除和修改 policy 等操作。

image.png

  • 管理 Subscription

支持对 Subscription 进行 skip、expire、clear 和 reset 等操作。

image.png

  • 管理 Cluster

支持对 Cluster 进行浏览和配置等操作。

image.png

  • 管理 Broker

支持对 Broker 进行浏览、健康检查和配置查询等操作。

image.png

监控 Topic 和 Subscription

image.png

image.png























猜你喜欢

转载自blog.51cto.com/536410/2561864
今日推荐