Skip to main content
Version: v2.2.0

Prometheus Metrics

This doc contains all the metrics that Dragonfly components currently support. Now we support metrics for Client, Seed Client, Manager and Scheduler. The metrics path is fixed to /metrics. The following metrics are exported.

Client

GRPC metrics are exposed via go-grpc-prometheus.

NameLabelsTypeDescription
download_task_totaltype, tag, app, prioritycounterCounter of the number of the download task.
download_task_failure_totaltype, tag, app, prioritycounterCounter of the number of failed of the download task.
prefetch_task_totaltype, tag, app, prioritycounterCounter of the number of the prefetch task.
prefetch_task_failure_totaltype, tag, app, prioritycounterCounter of the number of failed of the prefetch task.
concurrent_download_task_totaltype, tag, app, prioritygaugeGauge of the number of concurrent of the download task.
concurrent_upload_piece_totalgaugeGauge of the number of concurrent of the upload piece.
download_traffictypecounterCounter of the number of the download traffic.
upload_trafficcounterCounter of the number of the upload traffic.
download_task_duration_millisecondstask_size_levelhistogramHistogram of the download task duration.
versiongit_version, git_commit, platform, build_timegaugeVersion info of the service.

Manager

GRPC metrics are exposed via go-grpc-prometheus.

NameLabelsTypeDescription
dragonfly_manager_peer_totalversion, commitgaugeGauge of the number of peer.
dragonfly_manager_search_scheduler_cluster_totalversion, commitcounterCounter of the number of searching scheduler cluster.
dragonfly_manager_search_scheduler_cluster_failure_totalversion, commitcounterCounter of the number of failed of searching scheduler cluster.
dragonfly_manager_versionmajor, minor, git_version, git_commit, platform, build_time, go_version, go_tags, go_gcflagsgaugeVersion info of the service.

Scheduler

GRPC metrics are exposed via go-grpc-prometheus.

NameLabelsTypeDescription
dragonfly_scheduler_announce_peer_totalcounterCounter of the number of the announcing peer.
dragonfly_scheduler_announce_peer_failure_totalcounterCounter of the number of failed of the announcing peer.
dragonfly_scheduler_stat_peer_totalcounterCounter of the number of the stat peer.
dragonfly_scheduler_stat_peer_failure_totalcounterCounter of the number of failed of the stat peer.
dragonfly_scheduler_leave_peer_totalcounterCounter of the number of the leaving peer.
dragonfly_scheduler_leave_peer_failure_totalcounterCounter of the number of failed of the leaving peer.
dragonfly_scheduler_exchange_peer_totalcounterCounter of the number of the exchanging peer.
dragonfly_scheduler_exchange_peer_failure_totalcounterCounter of the number of the exchanging peer.
dragonfly_scheduler_register_peer_totalpriority, task_type, task_tag, task_app, host_typecounterCounter of the number of the register peer.
dragonfly_scheduler_register_peer_failure_totalpriority, task_type, task_tag, task_app, host_typecounterCounter of the number of failed of the register peer.
dragonfly_scheduler_download_peer_started_totalpriority, task_type, task_tag, task_app, host_typecounterCounter of the number of the download peer started.
dragonfly_scheduler_download_peer_started_failure_totalpriority, task_type, task_tag, task_app, host_typecounterCounter of the number of failed of the download peer started.
dragonfly_scheduler_download_peer_back_to_source_started_totalpriority, task_type, task_tag, task_app, host_typecounterCounter of the number of the download peer back-to-source started.
dragonfly_scheduler_download_peer_back_to_source_started_failure_totalpriority, task_type, task_tag, task_app, host_typecounterCounter of the number of failed of the download peer back-to-source started.
dragonfly_scheduler_download_peer_finished_totalpriority, task_type, task_tag, task_app, host_typecounterCounter of the number of the download peer.
dragonfly_scheduler_download_peer_finished_failure_totalpriority, task_type, task_tag, task_app, host_typecounterCounter of the number of failed of the download peer.
dragonfly_scheduler_download_peer_back_to_source_finished_failure_totalpriority, task_type, task_tag, task_app, host_typecounterCounter of the number of failed of the download peer back-to-source.
dragonfly_scheduler_download_piece_finished_totaltraffic_type, task_type, task_tag, task_app, host_typecounterCounter of the number of the download piece.
dragonfly_scheduler_download_piece_finished_failure_totaltraffic_type, task_type, task_tag, task_app, host_typecounterCounter of the number of failed of the download piece.
dragonfly_scheduler_download_piece_back_to_source_finished_failure_totaltraffic_type, task_type, task_tag, task_app, host_typecounterCounter of the number of failed of the download piece back-to-source.
dragonfly_scheduler_stat_task_totalcounterCounter of the number of the stat task.
dragonfly_scheduler_stat_task_failure_totalcounterCounter of the number of failed of the stat task.
dragonfly_scheduler_announce_host_totalos, platform, platform_family, platform_version, kernel_version, git_version, git_commit, go_version, build_platformcounterCounter of the number of the announce host.
dragonfly_scheduler_announce_host_failure_totalos, platform, platform_family, platform_version, kernel_version, git_version, git_commit, go_version, build_platformcounterCounter of the number of failed of the announce host.
dragonfly_scheduler_leave_host_totalcounterCounter of the number of the leaving host.
dragonfly_scheduler_leave_host_failure_totalcounterCounter of the number of failed of the leaving host.
dragonfly_scheduler_traffictype, task_type, task_tag, task_app, host_typecounterCounter of the number of traffic.
dragonfly_scheduler_host_traffictype, task_type, task_tag, task_app, host_type, host_id, host_ip, host_namecounterCounter of the number of per host traffic.
dragonfly_scheduler_download_peer_duration_millisecondstask_size_levelsummarySummary of the time each peer downloading.
dragonfly_scheduler_concurrent_schedule_totalgaugeGauge of the number of concurrent of the scheduling.
dragonfly_scheduler_versionmajor, minor, git_version, git_commit, platform, build_time, go_version, go_tags, go_gcflagscounterVersion info of the service.