mdlayher / rtorrent_exporter

Prometheus exporter that exposes metrics from rTorrent. MIT Licensed.
MIT License
38 stars 15 forks source link

rtorrent_exporter: Add download_total_bytes and upload_total_bytes metrics. #8

Closed jeanralphaviles closed 4 years ago

jeanralphaviles commented 4 years ago

Depends on https://github.com/mdlayher/rtorrent/pull/3. Includes changes from https://github.com/mdlayher/rtorrent_exporter/pull/7.

Example:

# HELP rtorrent_downloads_download_total_bytes Total Bytes downloaded.                                                              
# TYPE rtorrent_downloads_download_total_bytes gauge
rtorrent_downloads_download_total_bytes{info_hash="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",name="ubuntu.iso"} 3.317408117e+09                                                                                                                                
rtorrent_downloads_download_total_bytes{info_hash="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB",name="archlinux.iso"} 6.4112527806e+10                                                                                                                                                                                            
# HELP rtorrent_downloads_upload_total_bytes Total Bytes uploaded.                                                                  
# TYPE rtorrent_downloads_upload_total_bytes gauge
rtorrent_downloads_upload_total_bytes{info_hash="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",name="ubuntu.iso"} 4.387568983e+10                                                                                                                                  
rtorrent_downloads_upload_total_bytes{info_hash="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB",name="archlinux.iso"} 2.53656149302e+11  
jeanralphaviles commented 4 years ago

I ran go get -u and updated all the module dependencies, including rtorrent.

jeanralphaviles commented 4 years ago

Thank you for the quick reviews.