Axon 参考指南
  • 介绍
  • 架构概览
    • DDD & CQRS 概念
    • 事件溯源
    • 事件驱动的微服务
  • Axon Server
  • 发行说明
    • Axon Framework
      • Major Releases
      • Minor Releases
    • Axon Server
      • Major Releases
      • Minor Releases Standard Edition
      • Minor Releases Enterprise Edition
    • Axon Framework Extensions
      • AMQP
        • Major Releases
      • CDI
        • Major Releases
      • JGroups
        • Major Releases
      • Kafka
        • Major Releases
        • Minor Releases
      • Kotlin
        • Experimental Releases
      • Mongo
        • Major Releases
        • Minor Releases
      • Reactor
        • Major Releases
        • Minor Releases
      • Spring Cloud
        • Major Releases
        • Minor Releases
      • Tracing
        • Major Releases
        • Minor Releases
  • Getting Started
    • 快速开始
  • Axon Framework
    • 介绍
    • 消息传递概念
      • 消息剖析
      • 消息关联
      • 消息拦截
      • 支持带注解的处理程序
      • 异常处理
      • 工作单元
    • 命令
      • 建模
        • 聚合
        • 多实体聚合
        • 聚合状态存储
        • 从另一个聚合创建聚合
        • 聚合多态性
        • 解决冲突
      • 命令调度器
      • 命令处理程序
      • 基础设施
      • 配置
    • 事件
      • 事件调度器
      • 事件处理程序
      • 事件处理器
        • 订阅事件处理器
        • 流式事件处理器
      • 事件总线和事件存储
      • 事件版本控制
    • 查询
      • 查询处理
      • 查询调度器
      • 查询处理程序
      • 实现
      • 配置
    • 长时处理过程(Sagas)
      • 实现
      • 关联
      • 基础设施
    • Deadlines
      • Deadline Managers
      • Event Schedulers
    • 测试
      • 命令 / 事件
      • 长时处理过程(Sagas)
    • 序列化
    • 调整
      • 事件快照
      • 事件处理
      • 命令处理
    • 监控和指标
    • Spring Boot 集成
    • 模块
  • Axon Server
    • 介绍
    • 安装
      • 本地安装
        • Axon Server SE
        • Axon Server EE
      • Docker / K8s
        • Axon Server SE
        • Axon Server EE
    • 管理
      • 配置
        • System Properties
        • Command Line Interface
        • REST API
        • GRPC API
      • Monitoring
        • Actuator Endpoints
        • gRPC Metrics
        • Heartbeat Monitoring
      • Clusters
      • Replication Groups
      • Multi-Context
      • Tagging
      • Backup and Messaging-only Nodes
      • Backups
      • Recovery
      • Plugins
      • Error Codes
    • 安全
      • SSL
      • 访问控制
      • 访问控制 - 标准版
      • 访问控制 - 企业版
      • 访问控制 - 客户端应用程序
      • 访问控制 - 命令行
      • 访问控制 - REST API
      • 访问控制 - LDAP
      • 访问控制 - OAuth 2.0
    • 性能
      • 事件段
      • 流量控制
    • 迁移
      • Standard to Enterprise Edition
      • Non-Axon Server to Axon Server
  • Extensions
    • Spring AMQP
    • JGroups
    • Kafka
    • Kotlin
    • Mongo
    • Reactor
      • Reactor Gateways
    • Spring Cloud
    • Tracing
  • Appendices
    • A. RDBMS Tuning
    • B. Message Handler Tuning
      • 参数解析器
      • 处理程序增强
    • C. 元数据注解
    • D. 标识符生成
    • E. Axon Server Query Language
由 GitBook 提供支持
在本页
  • Health endpoint
  • Application level metrics‌
  1. Axon Server
  2. 管理
  3. Monitoring

Actuator Endpoints

上一页Monitoring下一页gRPC Metrics

最后更新于2年前

For monitoring, AxonServer includes Spring Boot Actuator endpoints which are available under the /actuator URL path of the AxonServer.‌ For Axon Server SE, the URL for the Axon Server SE will be the single running node, while for Axon Server EE the URL should be pointing to any node serving the _admin context within an Axon Server EE cluster.

The /actuatorURL path returns a list of all available actuators. A list of the endpoints is given below.

  • /actuator/health endpoint is used to check the health of Axon Server itself, and (in the case of Axon Server EE) the health of the cluster. The HTTP status return code is not 200 when cluster health is anything other than "UP".

  • /actuator/info endpoint informs you about some basic attributes of an AxonServer (name, description, version). This is more useful for liveness/readiness probes.

  • /actuator/metrics endpoint publishes information about OS, JVM as well as

  • /actuator/loggers endpoint exposes detailed view of the loggers configuration

  • /actuator/prometheus endpoint exposes metrics data in a format that can be scraped by a ​

  • /actuator/env endpoint exposes the current environment properties

Health endpoint

The /actuator/health endpoint provides information on various components of Axon Server:

  • cluster (EE only), shows the status of the connection between the current Axon Server node and other nodes in the cluster. This section also shows information on the flow control between Axon Server nodes. If the value for commands.waiting or queries.waiting is not zero for a longer period of time, it means that the connected Axon Server node cannot process the commands or queries fast enough. If there are waiting commands or queries, or the connection with one of the other nodes is down, this component will show status WARN. If the connections to all other nodes is down, the status of the cluster component is DOWN.

  • command, shows the status of command handling applications connected to the current Axon Server node. For each connected application it shows the number of commands waiting to be sent to the command handler. If this value is higher than zero, it means that commands are being sent faster than the command handler can handle them.

  • db, shows the status of the control DB

  • diskSpace, shows the diskspace in use and available for each storage location (this includes the locations where events and snapshots are stored, and the location of the replication logs). if the available space in any of these locations is below the threshold, the health for the diskSpace component will be WARN.

  • license (EE only, since 4.5). shows the status of the license. If the license is in the grace period, this component gets status WARN, if license is expired the status becomes DOWM.

  • localEventStore, shows the status of the local replica for each context available on the current node.

  • ping, always shows UP

  • query, shows the status of query handling applications connected to the current Axon Server node. For each connected application it shows the number of queries waiting to be sent to the query handler. If this value is higher than zero, it means that queries are being sent faster than the query handler can handle them.

  • raft, shows the status of the replication process per replication group. It shows the leader of the replication group. For the leader it shows the status of the followers, checking if the follower has recently confirmed messages and if the follower is not too far behind. If there is a problem with the replication on one of the replication groups the health for this component is WARN. If there are issues for all replication groups the status is DOWN.

The overall health status is derived from the status of the components. If one of the components is WARN, the overall status is WARN. If one of the components is DOWN, it is DOWN.

The default setting for the health endpoint in Axon Server is to show the details, even when the user is not authenticated. To hide the details for non-authenticated users add this property to the axonserver.properties file:

management.endpoint.health.show-details=when-authorized

Application level metrics‌

Specific AxonServer metrics are available under /actuator/metrics endpoint:‌

  • /actuator/metrics/axon.events.count current number of events stored in a node

  • /actuator/metrics/axon.commands.count current number of commands stored in a node

  • /actuator/metrics/axon.queries.count current number of queries stored in a node

  • /actuator/metrics/axon.snapshots.count current number of snapshots stored in a node

  • /actuator/metrics/axon.commands.active current number of active commands in a node

Prometheus server (Monitoring system & time series database)
application level metrics​