xxxarr

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRadarrCollector

func NewRadarrCollector(url, apiKey string, interval time.Duration) prometheus.Collector

NewRadarrCollector creates a new RadarrCollector

func NewSonarrCollector

func NewSonarrCollector(url, apiKey string, interval time.Duration) prometheus.Collector

NewSonarrCollector creates a new SonarrCollector

Types

type RadarrCollector

type RadarrCollector struct {
	Updater
	cache.Cache
}

RadarrCollector presents Radarr statistics as Prometheus metrics

func (*RadarrCollector) Collect

func (coll *RadarrCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface

func (*RadarrCollector) Describe

func (coll *RadarrCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface

type SonarrCollector

type SonarrCollector struct {
	Updater
	cache.Cache
}

SonarrCollector presents Sonarr statistics as Prometheus metrics

func (*SonarrCollector) Collect

func (coll *SonarrCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface

func (*SonarrCollector) Describe

func (coll *SonarrCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface

type Updater

type Updater struct {
	xxxarr.API
}

Updater provides a generic means of getting stats from Sonarr or Radarr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL