plex

package
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector presents Plex statistics as Prometheus metrics

func NewCollector

func NewCollector(version, url, username, password string) *Collector

NewCollector creates a new Collector

func (*Collector) Collect

func (c *Collector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface

func (*Collector) Describe

func (c *Collector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface

type Config

type Config struct {
	URL      string
	UserName string
	Password string
}

Config to create a Collector

type Getter added in v2.8.0

type Getter interface {
	// contains filtered or unexported methods
}

type IPLocator

type IPLocator interface {
	Locate(string) (float64, float64, error)
}

type Measurer added in v2.8.0

type Measurer struct {
	// contains filtered or unexported fields
}

func (Measurer) Collect added in v2.8.0

func (m Measurer) Collect(ch chan<- prometheus.Metric)

func (Measurer) Describe added in v2.8.0

func (m Measurer) Describe(ch chan<- *prometheus.Desc)

func (Measurer) MeasureRequest added in v2.8.0

func (m Measurer) MeasureRequest(req *http.Request, _ *http.Response, err error, duration time.Duration)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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