rocketmq-expoter 项目启动后,会获取 rocketmq 的各项 metrics 收集到 mfs 对象中,当浏览器或 Prometheus 访问相应的接口时,会通过 service 将 mfs 对象中的 samples 生成 Prometheus 所支持的格式化数据。主要包含以下步骤: 浏览器通过访问 ip:5557/metrics,会调用 RMQMetricsController 类下的 metrics 方法,其中 ip...
RocketMQ 的exporter包是指 RocketMQ 中的指标导出器(Metrics Exporter)相关的类库。这个包通常用于将 ...
systemctl enable rocketmq_exporter #获取metrics数据 curl 192.168.x.x:5557/metrics
MetricService 负责将 MQ 集群返回的结果数据进行加工,使其符合 Prometheus 要求的格式化数据。 Collect 模块负责存储规范化后的数据,最后当 Prometheus 定时从 Exporter 拉取数据的时候,Exporter 就将 Collector 收集的数据通过 HTTP 的形式在/metrics 端点进行暴露。 RocketMQ-Exporter 的监控指标和告警指标 RocketMQ-Ex...
Exporter 就将 Collector 收集的数据通过 HTTP 的形式在/metrics 端点进行暴露。 RocketMQ-Exporter 的监控指标 RocketMQ-Exporter 主要是配合 Prometheus 来做监控,下面来看看当前在 Expoter 中定义了哪些监控指标和告警指标。 Broker Producer Consumer Groups ...
可以通过访问http://<your_server_ip>:5557/metrics来验证rocketmq-exporter是否正常运行。 如果看到Prometheus格式的监控指标数据,说明部署成功。 此外,如果你打算将rocketmq-exporter部署到Kubernetes集群中,可以参考以下步骤: 创建一个Dockerfile来构建Docker镜像: Dockerfile FROM openjdk:8-jre-alpine ARG ...
5.0里面, proxy, broker本身就是exporter, 不再需要rocketmq-exporter了,比如broker有一个配置metric...
Alerting Metrics The consumer accumulation alert is also an aggregation metric generated based on the aggregation metric of consumption accumulation. The threshold value varies for different consumers and is currently decided by the number of messages produced by the producer in the past five minutes. ...
rocketmq.config.namesrvAddr 127.0.0.1:9876 name server address for broker cluster rocketmq.config.webTelemetryPath /metrics Path under which to expose metrics server.port 5557 Address to listen on for web interface and telemetry rocketmq.config.rocketmqVersion V4_3_2 rocketmq broker version ...
接前文,之前分享了node_exporter的安装,对于rocketmq而言,不仅要监控最基本的机器信息,同时也要监控rocketmq的服务可用性。常见的一些服务指标包括:producer的消息生产tps,consumer的消费tps,整个集群的broker的tps等。这里我们使用rocketmq-exporter来采集相关的信息。