跳到主要内容
版本:v2.1.x

Prometheus 数据指标

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

Dfdaemon

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

名字标签类型描述
dragonfly_dfdaemon_proxy_request_totalmethodcounter代理请求总次数。
dragonfly_dfdaemon_proxy_request_via_dragonfly_totalcounter代理通过 drgonfly 的请求次数。
dragonfly_dfdaemon_proxy_request_not_via_dragonfly_totalcounter代理没有通过 dragonfly 的请求次数。
dragonfly_dfdaemon_proxy_request_running_totalmethodcounter当前代理请求总次数。
dragonfly_dfdaemon_proxy_request_bytes_totalmethodcounter所有代理请求的总字节数。
dragonfly_dfdaemon_peer_task_totalcounter任务的总个数。
dragonfly_dfdaemon_peer_task_failed_totaltypecounter失败任务的总个数。
dragonfly_dfdaemon_piece_task_totalcounter分片的总个数。
dragonfly_dfdaemon_piece_task_failed_totalcounter失败的分片总个数。
dragonfly_dfdaemon_file_task_totalcounter文件类型任务总个数。
dragonfly_dfdaemon_stream_task_totalcounter流式类型任务总个数。
dragonfly_dfdaemon_seed_peer_download_totalcounter作为 Seed Peer 下载总次数。
dragonfly_dfdaemon_seed_peer_download_failure_totalcounter作为 Seed Peer 下载失败总次数。
dragonfly_dfdaemon_seed_peer_download_traffictypecounter作为 Seed Peer 下载流量。
dragonfly_dfdaemon_seed_peer_concurrent_download_totalgauge作为 Seed Peer 的并行下载个数。
dragonfly_dfdaemon_peer_task_cache_hit_totalcounter命中缓存任务个数。
dragonfly_dfdaemon_prefetch_task_totalcounter预取任务总个数。

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服务版本信息。