0.1.2 • Published 3 years ago

transmission-influx-exporter v0.1.2

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
3 years ago

TransmissionInfluxExporter

InfluxDB exporter for Transmission stats

This is designed to be run as a cronjob with environment variables.

Installation

Requires Node@^14

$ yarn global add transmission-influx-exporter
$ npm install -g transmission-influx-exporter

Configuration

All done through environment e.g. TRANSMISSION_HOST=transmission.local transmission-influx-exporter

VariableDefaultDescription
DATABASE_NAMEtransmissionName of database to use, if it does not exist it will be created.
TRANSMISSION_HOSTlocalhostTransmission host
TRANSMISSION_PORT9091Transmission port
TRANSMISSION_USERNAME<not set>Transmission username
TRANSMISSION_PASSWORD<not set>Transmission password
TRANSMISSION_USE_SSL<not set>Use SSL for Transmission. Set to any value to enable.
TRANSMISSION_URL/transmission/rpcRPC endpoint for Transmission.
INFLUXDB_HOSTlocalhostInfluxDB host
INFLUXDB_PORT8086InfluxDB port
INFLUXDB_USERNAME<not set>InfluxDB username
INFLUXDB_PASSWORD<not set>InfluxDB password

Data Collected

Session Stats

Global stats

StatFieldDescription
Active Torrent CountactiveTorrentCountThe total number of active torrents
Paused Torrent CountpausedTorrentCountThe total number of paused torrents
Torrent CounttorrentCountThe total number of torrents
Download SpeeddownloadSpeedCurrent download speed in bytes
Upload SpeeduploadSpeedCurrent upload speed in bytes

"Current" stats (since last time transmission started) and "Cumulative" stats (all time)

StatFieldDescription
Uploaded BytesuploadedBytesThe number of uploaded bytes
Downloaded BytesdownloadedBytesThe number of downloaded bytes
Files AddedfilesAddedThe number of files added
Seconds ActivesecondsActiveThe number of seconds transmission has been active for
Session CountsessionCountCount of the times transmission started

Torrent Stats

Torrents come with extra tags.

StatTagDescription
NamenameName of the torrent
Hash StringhashThe torrent's hash
StatFieldDescription
StatusstatusStatus of a torrent
Added DateaddedDateThe unixtime time a torrent was added
FinishedfinishedIndicates if a torrent is finished
FilesfilesThe number of files in a torrent
Percent DonepercentDoneThe percent of a torrent being done (0 - 1.0)
Upload RatioratioThe upload ratio of a torrent
Uploaded EveruploadedEverAmount of data ever uploaded for the torrent in bytes
Download SpeeddownloadSpeedCurrent download rate of a torrent in bytes
Upload SpeeduploadSpeedCurrent upload rate of a torrent in bytes

Credits

By Jack Burgess

Heavily influenced by metalmatze/transmission-exporter, if you want an exporter for Prometheus (written in Go) then Go and check the project out!

License

GNUGPLv3