指标
Apstra 流量收集器公开端点, /metrics
以提供与其性能和所用资源相关的与 Prometheus 兼容的统计信息。端点以 Prometheus 基于文本的说明格式返回数据。请查看 Prometheus 文档 了解详情。
本主题介绍您可以从 /metrics
Apstra 流中的端点检索的统计信息类型。
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 |
应用程序的名称。 |
OpenSearch 输出
- 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 |
输出的名称。 |