diff --git a/modules/qbittorrent/exporter/qbittorrent_exporter.go b/modules/qbittorrent/exporter/qbittorrent_exporter.go index 3a646d6..cfb782f 100644 --- a/modules/qbittorrent/exporter/qbittorrent_exporter.go +++ b/modules/qbittorrent/exporter/qbittorrent_exporter.go @@ -31,7 +31,6 @@ type TorrentInfo struct { LeechsConnected int `json:"num_leechs"` LeechsSwarm int `json:"num_incomplete"` Name string `json:"name"` - SeedingTime int `json:"seeding_time"` SeedsConnected int `json:"num_seeds"` SeedsSwarm int `json:"num_complete"` Size int `json:"size"` @@ -60,11 +59,6 @@ var ( "Number of leechs in the swarm", []string{"hash", "name"}, nil, ) - qbittorrentTorrentSeedingTime = prometheus.NewDesc( - "qbittorrent_torrent_seeding_time_seconds", - "Time this torrent has been seeding", - []string{"hash", "name"}, nil, - ) qbittorrentTorrentSeedsConnected = prometheus.NewDesc( "qbittorrent_torrent_seeds_connected", "Number of seeds connected to", @@ -146,7 +140,6 @@ func (e Exporter) Describe(ch chan<- *prometheus.Desc) { ch <- qbittorrentTorrentDownloaded ch <- qbittorrentTorrentLeechsConnected ch <- qbittorrentTorrentLeechsSwarm - ch <- qbittorrentTorrentSeedingTime ch <- qbittorrentTorrentSeedsConnected ch <- qbittorrentTorrentSeedsSwarm ch <- qbittorrentTorrentSize @@ -163,7 +156,6 @@ func (e Exporter) Collect(ch chan<- prometheus.Metric) { ch <- prometheus.MustNewConstMetric(qbittorrentTorrentDownloaded, prometheus.CounterValue, float64(torrentInfo.Downloaded), torrentInfo.Hash, torrentInfo.Name) ch <- prometheus.MustNewConstMetric(qbittorrentTorrentLeechsConnected, prometheus.GaugeValue, float64(torrentInfo.LeechsConnected), torrentInfo.Hash, torrentInfo.Name) ch <- prometheus.MustNewConstMetric(qbittorrentTorrentLeechsSwarm, prometheus.GaugeValue, float64(torrentInfo.LeechsSwarm), torrentInfo.Hash, torrentInfo.Name) - ch <- prometheus.MustNewConstMetric(qbittorrentTorrentSeedingTime, prometheus.CounterValue, float64(torrentInfo.SeedingTime), torrentInfo.Hash, torrentInfo.Name) ch <- prometheus.MustNewConstMetric(qbittorrentTorrentSeedsConnected, prometheus.GaugeValue, float64(torrentInfo.SeedsConnected), torrentInfo.Hash, torrentInfo.Name) ch <- prometheus.MustNewConstMetric(qbittorrentTorrentSeedsSwarm, prometheus.GaugeValue, float64(torrentInfo.SeedsSwarm), torrentInfo.Hash, torrentInfo.Name) ch <- prometheus.MustNewConstMetric(qbittorrentTorrentSize, prometheus.GaugeValue, float64(torrentInfo.Size), torrentInfo.Hash, torrentInfo.Name)