collectd-tvheadend
is a simple Python3-based collectd
plugin for gathering statistics from Tvheadend.
It gathers input-related statistics as documented here.
Clone this repository into a suitable directory.
Create the configuration file /etc/collectd/collectd.conf.d/tvheadend.conf
as follows and adapt it to your specific situation:
LoadPlugin python
<Plugin python>
ModulePath "/path/to/collectd-tvheadend"
LogTraces true
Interactive false
Import "collectd_tvheadend"
<Module collectd_tvheadend>
# Base url of Tvheadend:
BaseURL "http://localhost:9981"
# Add an HTTP header to the request (eg. for authentication):
# Header "Cookie" "foo=bar"
</Module>
</Plugin>