exporter

package
v0.0.0-...-3235fe5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "wowza"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name                     string                `xml:"Name"`
	Status                   string                `xml:"Status"`
	TimeRunning              float64               `xml:"TimeRunning"`
	ConnectionsCurrent       int                   `xml:"ConnectionsCurrent"`
	ConnectionsTotal         int                   `xml:"ConnectionsTotal"`
	ConnectionsTotalAccepted int                   `xml:"ConnectionsTotalAccepted"`
	ConnectionsTotalRejected int                   `xml:"ConnectionsTotalRejected"`
	MessagesInBytesRate      float64               `xml:"MessagesBytesRate"`
	MessagesOutBytesRate     float64               `xml:"MessagesOutBytesRate"`
	ApplicationInstance      []ApplicationInstance `xml:"ApplicationInstance"`
}

type ApplicationInstance

type ApplicationInstance struct {
	Name                     string        `xml:"Name"`
	Status                   string        `xml:"Status"`
	TimeRunning              float64       `xml:"TimeRunning"`
	ConnectionsCurrent       int           `xml:"ConnectionsCurrent"`
	ConnectionsTotal         int           `xml:"ConnectionsTotal"`
	ConnectionsTotalAccepted int           `xml:"ConnectionsTotalAccepted"`
	ConnectionsTotalRejected int           `xml:"ConnectionsTotalRejected"`
	MessagesInBytesRate      float64       `xml:"MessagesBytesRate"`
	MessagesOutBytesRate     float64       `xml:"MessagesOutBytesRate"`
	Stream                   []interface{} `xml:"Stream"`
}

type Exporter

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

Exporter collects metrics from a wowza server.

func New

func New(hostname string, port int, username string, password string, logger log.Logger) *Exporter

New returns an initialized exporter.

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

Collect fetches the statistics from the configured wowza server, and delivers them as Prometheus metrics. It implements prometheus.Collector.

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

Describe describes all the metrics exported by the wowza exporter. It implements prometheus.Collector.

type Response

type Response struct {
	ConnectionsCurrent       int     `xml:"ConnectionsCurrent"`
	ConnectionsTotal         int     `xml:"ConnectionsTotal"`
	ConnectionsTotalAccepted int     `xml:"ConnectionsTotalAccepted"`
	ConnectionsTotalRejected int     `xml:"ConnectionsTotalRejected"`
	MessagesInBytesRate      float64 `xml:"MessagesBytesRate"`
	MessagesOutBytesRate     float64 `xml:"MessagesOutBytesRate"`
	VHost                    []VHost `xml:"VHost"`
}

type VHost

type VHost struct {
	Name                     string        `xml:"Name"`
	TimeRunning              float64       `xml:"TimeRunning"`
	ConnectionsLimit         int           `xml:"ConnectionsLimit"`
	ConnectionsCurrent       int           `xml:"ConnectionsCurrent"`
	ConnectionsTotal         int           `xml:"ConnectionsTotal"`
	ConnectionsTotalAccepted int           `xml:"ConnectionsTotalAccepted"`
	ConnectionsTotalRejected int           `xml:"ConnectionsTotalRejected"`
	MessagesInBytesRate      float64       `xml:"MessagesBytesRate"`
	MessagesOutBytesRate     float64       `xml:"MessagesOutBytesRate"`
	Application              []Application `xml:"Application"`
}

Jump to

Keyboard shortcuts

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