Skip to main content
Version: v2.0.6

Prometheus Metrics

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

Dfdaemon

GRPC metrics are exposed via go-grpc-prometheus.

NameLabelsTypeDescription
dragonfly_dfdaemon_proxy_request_totalmethodcounterCounter of the total proxy request.
dragonfly_dfdaemon_proxy_request_via_dragonfly_totalcounterCounter of the total proxy request via Dragonfly.
dragonfly_dfdaemon_proxy_request_not_via_dragonfly_totalcounterCounter of the total proxy request not via Dragonfly.
dragonfly_dfdaemon_proxy_request_running_totalmethodcounterCurrent running count of proxy request.
dragonfly_dfdaemon_proxy_request_bytes_totalmethodcounterCounter of the total byte of all proxy request.
dragonfly_dfdaemon_peer_task_totalcounterCounter of the total peer tasks.
dragonfly_dfdaemon_peer_task_failed_totaltypecounterCounter of the total failed peer tasks.
dragonfly_dfdaemon_piece_task_totalcounterCounter of the total failed piece tasks.
dragonfly_dfdaemon_piece_task_failed_totalcounterDragonfly dfget tasks.
dragonfly_dfdaemon_file_task_totalcounterCounter of the total file tasks.
dragonfly_dfdaemon_stream_task_totalcounterCounter of the total stream tasks.
dragonfly_dfdaemon_seed_peer_download_totalcounterCounter of the number of the seed peer downloading.
dragonfly_dfdaemon_seed_peer_download_failure_totalcounterCounter of the number of failed of the seed peer downloading.
dragonfly_dfdaemon_seed_peer_download_traffictypecounterCounter of the number of seed peer download traffic.
dragonfly_dfdaemon_seed_peer_concurrent_download_totalgaugeGauger of the number of concurrent of the seed peer downloading.
dragonfly_dfdaemon_peer_task_cache_hit_totalcounterCounter of the total cache hit peer tasks.
dragonfly_dfdaemon_prefetch_task_totalcounterCounter of the total prefetched tasks.

Manager

GRPC metrics are exposed via go-grpc-prometheus.

NameLabelsTypeDescription
dragonfly_manager_peer_totalgaugeGauge of the number of peer.

Scheduler

GRPC metrics are exposed via go-grpc-prometheus.

NameLabelsTypeDescription
dragonfly_scheduler_register_peer_task_totaltagcounterCounter of the number of the register peer task.
dragonfly_scheduler_register_peer_task_failure_totaltagcounterCounter of the number of failed of the register peer task.
dragonfly_scheduler_download_totaltagcounterCounter of the number of the downloading.
dragonfly_scheduler_download_failure_totaltag, typecounterCounter of the number of failed of the downloading.
dragonfly_scheduler_leave_task_totaltagcounterCounter of the number of the task leaving.
dragonfly_scheduler_leave_task_failure_totaltagcounterCounter of the number of failed of the task leaving.
dragonfly_scheduler_traffictag, typecounterCounter of the number of p2p traffic.
dragonfly_scheduler_peer_host_traffictag, traffic_type, peer_host_uuid, peer_host_ipcounterCounter of the number of per peer host traffic.
dragonfly_scheduler_peer_task_totaltag, typecounterCounter of the number of peer task.
dragonfly_scheduler_peer_task_download_duration_millisecondstaghistogramHistogram of the time each peer task downloading.
dragonfly_scheduler_concurrent_schedule_totalgaugeGauge of the number of concurrent of the scheduling.
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_task_totalcounterCounter of the number of the announce task.
dragonfly_scheduler_announce_task_failure_totalcounterCounter of the number of failed of the announce task.