JMX指标和新文物 [英] JMX Metrics and New Relic

查看:64
本文介绍了JMX指标和新文物的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们为配置添加了新的遗物代理,以了解并了解JMX指标的配置和捕获。我们的CorDapp新消息显示在我们的新文物帐户下。但是,捕获和显示的唯一度量标准是通用的并且与JVM相关。

We have new relic’s agent to our configuration to get exposure and understand the configuration and capture of JMX metrics. Our CorDapp new shows up under our new relic account. However, the only metrics being captured and displayed are general and related to the JVM.

唯一包含@MXBean批注的源文件是HibernateStatistics。

The only source file including the @MXBean annotation is HibernateStatistics.

我可以在master下看到有关指标和监视的更多详细信息。

I see under master that there is more details around metrics and monitoring.

我认为直到V3.1之后才发生额外的指标捕获。

I assume that the additional metric capture did not happen until after V3.1.

我只是在寻找来确认我们没有忽略实际上应该用于流量和交易的指标和指标。

I am just looking to confirm that we are not overlooking something and metrics should actually for flows and transactions.

推荐答案

在Corda 3.1中,唯一的Corda-暴露的具体指标是:

In Corda 3.1, the only Corda-specific metrics exposed are:


  • 附件数( net.corda:name =附件

  • 流检查点率( net.corda:type = Flows,name =检查点率

  • 已启动流的数量( net.corda:type = Flows,name = Started

  • 该数量飞行中的流量( net.corda:type = Flows,name = InFlight

  • 已完成的流量数( net.corda:type = Flows,name = Finished

  • The number of attachments (net.corda:name=Attachments)
  • The flow checkpointing rate (net.corda:type=Flows,name=Checkpointing Rate)
  • The number of started flows (net.corda:type=Flows,name=Started)
  • The number of in-flight flows (net.corda:type=Flows,name=InFlight)
  • The number of finished flows (net.corda:type=Flows,name=Finished)

Apache Artemis指标是也暴露了。可以在此处找到公开指标的列表: https:// docs。 corda.net/node-administration.html#monitoring-your-node 。如您所述,Corda的未来版本将扩展此指标列表。

Apache Artemis metrics are also exposed. The list of exposed metrics can be found here: https://docs.corda.net/node-administration.html#monitoring-your-node. As you note, future versions of Corda will expand this list of metrics.

当节点的 StateMachineManager StateMachineManagerImpl.kt ,如下所示:

The flow metrics are registered when the node's StateMachineManager is instantiated in StateMachineManagerImpl.kt, as follows:

// Monitoring support.
private val metrics = serviceHub.monitoringService.metrics

init {
    metrics.register("Flows.InFlight", Gauge<Int> { mutex.content.stateMachines.size })
}

private val checkpointingMeter = metrics.meter("Flows.Checkpointing Rate")
private val totalStartedFlows = metrics.counter("Flows.Started")
private val totalFinishedFlows = metrics.counter("Flows.Finished")

这篇关于JMX指标和新文物的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆