跳到主要内容
版本:Next

Prometheus 数据指标

文档包含 Dragonfly 组件当前支持的所有指标。 现在支持 Client、Seed Client、Manager 和 Scheduler 服务的指标。 获取数据指标的路径固定为 /metrics

Client

GRPC 数据指标基于 go-grpc-prometheus.

名字标签类型描述
download_task_totaltype, tag, app, prioritycounter下载任务下载总次数。
download_task_failure_totaltype, tag, app, prioritycounter下载任务失败总次数。
prefetch_task_totaltype, tag, app, prioritycounter预取任务总次数。
prefetch_task_failure_totaltype, tag, app, prioritycounter预取任务失败总次数。
concurrent_download_task_totaltype, tag, app, prioritygauge下载任务并发数量。
concurrent_upload_piece_totalgauge上传任务并发数量。
download_traffictypecounter下载流量统计。
upload_trafficcounter上传流量统计。
download_task_duration_millisecondstask_size_levelhistogram下载任务持续时间的直方图。
versiongit_version, git_commit, platform, build_timegauge服务的版本信息。

Manager

GRPC 数据指标基于 go-grpc-prometheus.

名字标签类型描述
dragonfly_manager_peer_totalversion, commitgauge当前活跃的 Peer 总个数。
dragonfly_manager_search_scheduler_cluster_totalversion, commitcounterPeer 搜索 Scheduler 集群总次数。
dragonfly_manager_search_scheduler_cluster_failure_totalversion, commitcounterPeer 搜索 Scheduler 集群失败次数。
dragonfly_manager_versionmajor, minor, git_version, git_commit, platform, build_time, go_version, go_tags, go_gcflagsgauge服务版本信息。

Scheduler

GRPC 数据指标基于 go-grpc-prometheus.

名字标签类型描述
dragonfly_scheduler_announce_peer_totalcounter上报 Peer 任务总次数。
dragonfly_scheduler_announce_peer_failure_totalcounter上报 Peer 失败次数。
dragonfly_scheduler_stat_peer_totalcounter查询 Peer 任务总次数。
dragonfly_scheduler_stat_peer_failure_totalcounter查询 Peer 任务失败次数。
dragonfly_scheduler_leave_peer_totalcounter释放 Peer 任务总次数。
dragonfly_scheduler_leave_peer_failure_totalcounter释放 Peer 任务失败次数。
dragonfly_scheduler_exchange_peer_totalcounter交换 Peer 任务信息总次数。
dragonfly_scheduler_exchange_peer_failure_totalcounter交换 Peer 任务信息失败次数。
dragonfly_scheduler_register_peer_totalpriority, task_type, task_tag, task_app, host_typecounter注册 Peer 任务总次数。
dragonfly_scheduler_register_peer_failure_totalpriority, task_type, task_tag, task_app, host_typecounter注册 Peer 任务失败次数。
dragonfly_scheduler_download_peer_started_totalpriority, task_type, task_tag, task_app, host_typecounter下载 Peer 任务接收 Started Piece 总次数。
dragonfly_scheduler_download_peer_started_failure_totalpriority, task_type, task_tag, task_app, host_typecounter下载 Peer 任务接收 Started Piece 失败次数。
dragonfly_scheduler_download_peer_back_to_source_started_totalpriority, task_type, task_tag, task_app, host_typecounter回源下载 Peer 任务接收 Started Piece 总次数。
dragonfly_scheduler_download_peer_back_to_source_started_failure_totalpriority, task_type, task_tag, task_app, host_typecounter回源下载 Peer 任务接收 Started Piece 失败次数。
dragonfly_scheduler_download_peer_finished_totalpriority, task_type, task_tag, task_app, host_typecounter下载 Peer 任务完成总次数。
dragonfly_scheduler_download_peer_finished_failure_totalpriority, task_type, task_tag, task_app, host_typecounter下载 Peer 任务失败次数。
dragonfly_scheduler_download_peer_back_to_source_finished_failure_totalpriority, task_type, task_tag, task_app, host_typecounter回源下载 Peer 任务失败次数。
dragonfly_scheduler_download_piece_finished_totaltraffic_type, task_type, task_tag, task_app, host_typecounter下载 Piece 完成总次数。
dragonfly_scheduler_download_piece_finished_failure_totaltraffic_type, task_type, task_tag, task_app, host_typecounter下载 Piece 失败次数。
dragonfly_scheduler_download_piece_back_to_source_finished_failure_totaltraffic_type, task_type, task_tag, task_app, host_typecounter回源下载 Piece 失败次数。
dragonfly_scheduler_stat_task_totalcounter查询任务总次数。
dragonfly_scheduler_stat_task_failure_totalcounter查询任务失败次数。
dragonfly_scheduler_announce_host_totalos, platform, platform_family, platform_version, kernel_version, git_version, git_commit, go_version, build_platformcounter上报 Host 总次数。
dragonfly_scheduler_announce_host_failure_totalos, platform, platform_family, platform_version, kernel_version, git_version, git_commit, go_version, build_platformcounter上报 Host 失败次数。
dragonfly_scheduler_leave_host_totalcounter释放 Host 总次数。
dragonfly_scheduler_leave_host_failure_totalcounter释放 Host 失败次数。
dragonfly_scheduler_traffictype, task_type, task_tag, task_app, host_typecounter总体流量统计。
dragonfly_scheduler_host_traffictype, task_type, task_tag, task_app, host_type, host_id, host_ip, host_namecounterHost 流量统计
dragonfly_scheduler_download_peer_duration_millisecondstask_size_levelsummaryPeer 任务下载耗时。
dragonfly_scheduler_concurrent_schedule_totalgauge并行调度 Peer 任务个数。
dragonfly_scheduler_versionmajor, minor, git_version, git_commit, platform, build_time, go_version, go_tags, go_gcflagscounter服务版本信息。