Skip to main content
Version: v2.0.2

Prometheus Metrics

This doc contains all the metrics that Dragonfly components currently support. Now we support metrics for Dfdaemon, Manager, Scheduler and CDN. 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_peer_task_cache_hit_totalcounterCounter of the total cache hit peer tasks.

Manager

GRPC metrics are exposed via go-grpc-prometheus.

Scheduler

GRPC metrics are exposed via go-grpc-prometheus.

NameLabelsTypeDescription
dragonfly_scheduler_register_peer_task_totalbiz_tagcounterCounter of the number of the register peer task.
dragonfly_scheduler_register_peer_task_failure_totalbiz_tagcounterCounter of the number of failed of the register peer task.
dragonfly_scheduler_download_totalbiz_tagcounterCounter of the number of the downloading.
dragonfly_scheduler_download_failure_totalbiz_tag, typecounterCounter of the number of failed of the downloading.
dragonfly_scheduler_leave_task_totalbiz_tagcounterCounter of the number of the task leaving.
dragonfly_scheduler_leave_task_failure_totalbiz_tagcounterCounter of the number of failed of the task leaving.
dragonfly_scheduler_trafficbiz_tag, typecounterCounter of the number of p2p traffic.
dragonfly_scheduler_peer_host_trafficbiz_tag, traffic_type, peer_host_uuid, peer_host_ipcounterCounter of the number of per peer host traffic.
dragonfly_scheduler_peer_task_totalbiz_tag, typecounterCounter of the number of peer task.
dragonfly_scheduler_peer_task_download_duration_millisecondsbiz_taghistogramHistogram of the time each peer task downloading.
dragonfly_scheduler_concurrent_schedule_totalgaugeGauge of the number of concurrent of the scheduling.

CDN

GRPC metrics are exposed via go-grpc-prometheus.

NameLabelsTypeDescription
dragonfly_cdn_download_totalcounterCounter of the number of the downloading.
dragonfly_cdn_download_failure_totalcounterCounter of the number of failed of the downloading.
dragonfly_cdn_download_trafficcounterCounter of the number of download traffic.
dragonfly_cdn_concurrent_download_totalgaugeGauger of the number of concurrent of the downloading.