qbittorrent/exporter: Do not expose seeding time
It is not useful and just wastes storage space.
This commit is contained in:
parent
a3784e51de
commit
8dc3558c7c
|
@ -31,7 +31,6 @@ type TorrentInfo struct {
|
||||||
LeechsConnected int `json:"num_leechs"`
|
LeechsConnected int `json:"num_leechs"`
|
||||||
LeechsSwarm int `json:"num_incomplete"`
|
LeechsSwarm int `json:"num_incomplete"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
SeedingTime int `json:"seeding_time"`
|
|
||||||
SeedsConnected int `json:"num_seeds"`
|
SeedsConnected int `json:"num_seeds"`
|
||||||
SeedsSwarm int `json:"num_complete"`
|
SeedsSwarm int `json:"num_complete"`
|
||||||
Size int `json:"size"`
|
Size int `json:"size"`
|
||||||
|
@ -60,11 +59,6 @@ var (
|
||||||
"Number of leechs in the swarm",
|
"Number of leechs in the swarm",
|
||||||
[]string{"hash", "name"}, nil,
|
[]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(
|
qbittorrentTorrentSeedsConnected = prometheus.NewDesc(
|
||||||
"qbittorrent_torrent_seeds_connected",
|
"qbittorrent_torrent_seeds_connected",
|
||||||
"Number of seeds connected to",
|
"Number of seeds connected to",
|
||||||
|
@ -146,7 +140,6 @@ func (e Exporter) Describe(ch chan<- *prometheus.Desc) {
|
||||||
ch <- qbittorrentTorrentDownloaded
|
ch <- qbittorrentTorrentDownloaded
|
||||||
ch <- qbittorrentTorrentLeechsConnected
|
ch <- qbittorrentTorrentLeechsConnected
|
||||||
ch <- qbittorrentTorrentLeechsSwarm
|
ch <- qbittorrentTorrentLeechsSwarm
|
||||||
ch <- qbittorrentTorrentSeedingTime
|
|
||||||
ch <- qbittorrentTorrentSeedsConnected
|
ch <- qbittorrentTorrentSeedsConnected
|
||||||
ch <- qbittorrentTorrentSeedsSwarm
|
ch <- qbittorrentTorrentSeedsSwarm
|
||||||
ch <- qbittorrentTorrentSize
|
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(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(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(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(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(qbittorrentTorrentSeedsSwarm, prometheus.GaugeValue, float64(torrentInfo.SeedsSwarm), torrentInfo.Hash, torrentInfo.Name)
|
||||||
ch <- prometheus.MustNewConstMetric(qbittorrentTorrentSize, prometheus.GaugeValue, float64(torrentInfo.Size), torrentInfo.Hash, torrentInfo.Name)
|
ch <- prometheus.MustNewConstMetric(qbittorrentTorrentSize, prometheus.GaugeValue, float64(torrentInfo.Size), torrentInfo.Hash, torrentInfo.Name)
|
||||||
|
|
Loading…
Reference in a new issue