指标
Apstra Flow 收集器公开 /metrics
端点,以提供与其性能和所用资源相关的与 Prometheus 兼容的统计信息。端点以基于 Prometheus 文本的公开格式返回数据。请参阅 Prometheus 文档 以了解更多信息。
本主题介绍您可以从 Apstra Flow 中的终端节点检索 /metrics
的统计信息类型。
app_info
app_info
statistic shows the application details. For example:
app_info{arch="arm64",cpus="8",env="native",hostname="M1-MacBook-Pro.local",os="darwin",run_id="b1214e11-198f-43e7-81f1-c9986e9b3ff7"} 1
Label | Description |
---|---|
arch |
The environment running the application. |
cpus |
The number of available CPUs. |
env |
Native install or Docker install. |
hostname |
The name of machine. |
os |
The operating system running the application. |
run_id |
The application ID. |
许可证单位
The license_units
statistic shows details on your Apstra license. For example:
license_units{account_id="",expiration="0",level="0",riskiq_disabled="false"} 1
This record contains the following labels:
Label | Description |
---|---|
account_id |
The license account ID. |
expiration |
The license expiration date. |
level |
The license level. |
riskiq_disabled |
riskiq is disabled for the license. |
流 UDP 服务器
udp_server_packet_queue_util
统计信息 udp_server_packet_queue_util
显示数据包队列的利用率,该队列存储等待处理的已接收数据包。例如:
udp_server_packet_queue_util{application="flowcoll"} 0
此记录包含以下标签:
标签 | 说明 |
---|---|
application |
应用程序的名称。 |
udp_server_packets_received_total
统计信息 udp_server_packets_received_total
显示 UDP 服务器接收的数据包总数。例如:
udp_server_packets_received_total{application="flowcoll",port="9995"} 0
此记录包含以下标签:
标签 | 说明 |
---|---|
application |
应用程序的名称。 |
port |
UDP 服务器侦听的端口。 |
udp_server_bytes_received_total
统计信息 udp_server_bytes_received_total
提供 UDP 服务器接收的字节总数。
udp_server_bytes_received_total{application="flowcoll",port="9995"} 0
此记录包含以下标签:
标签 | 说明 |
---|---|
application |
应用程序的名称。 |
port |
UDP 服务器侦听的端口。 |
处理器
record_queue_util
record_queue_util
统计信息显示记录队列大小除以其容量的比率。例如:
record_queue_util{application="flowcoll"} 0
此记录包含以下标签:
标签 | 说明 |
---|---|
application |
应用程序的名称。 |
打开搜索输出
- outputs_records_received_total
- outputs_records_sent_total
- outputs_bulk_requests_total
- outputs_bulk_requests_errored_total
- outputs_records_errored_total
outputs_records_received_total
outputs_records_received_total
统计数据显示输出接收的记录总数。例如:
outputs_records_received_total{application="flowcoll",namespace="default",output="opensearch"} 0
此记录包含以下标签:
标签 | 说明 |
---|---|
application |
应用程序的名称。 |
namespace |
命名空间的名称。 |
output |
输出的名称。 |
outputs_records_sent_total
outputs_records_sent_total
统计信息显示输出发送的记录总数。例如:
outputs_records_sent_total{application="flowcoll",namespace="default",output="opensearch"} 0
此记录包含以下标签:
标签 | 说明 |
---|---|
application |
应用程序的名称。 |
namespace |
命名空间的名称。 |
output |
输出的名称。 |
outputs_bulk_requests_total
统计信息 outputs_bulk_requests_total
显示输出发送的批量请求的总数。例如:
outputs_bulk_requests_total{application="flowcoll",namespace="default",output="opensearch"} 0
此记录包含以下标签:
标签 | 说明 |
---|---|
application |
应用程序的名称。 |
namespace |
命名空间的名称。 |
output |
输出的名称。 |
outputs_bulk_requests_errored_total
统计信息 outputs_bulk_requests_errored_total
显示出错的批量请求的总数。例如:
outputs_bulk_requests_errored_total{application="flowcoll",namespace="default",output="opensearch"} 0The outputs_bulk_requests_errored_total
record provides the following labels:
此记录包含以下标签:
标签 | 说明 |
---|---|
application |
应用程序的名称。 |
namespace |
命名空间的名称。 |
output |
输出的名称。 |
outputs_records_errored_total
outputs_records_errored_total
统计信息显示错误记录的总数。例如:
outputs_records_errored_total{application="flowcoll",namespace="default",output="opensearch"} 0
此记录包含以下标签:
标签 | 说明 |
---|---|
application |
应用程序的名称。 |
namespace |
命名空间的名称。 |
output |
输出的名称。 |