collectors

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApacheCollector

type ApacheCollector struct {
	WebsocketConnections    *prometheus.Desc
	ClientConnections       *prometheus.Desc
	UniqueClientConnections *prometheus.Desc
	UniqueWebsocketClients  *prometheus.Desc
	// contains filtered or unexported fields
}

func NewApacheCollector

func NewApacheCollector(logger *slog.Logger) *ApacheCollector

type ApacheMetrics

type ApacheMetrics struct {
	WebsocketConnections    int
	ClientConnections       int
	UniqueWebsocketClients  int
	UniqueClientConnections int
}

type Collector

type Collector struct {
	sync.Mutex
	ApacheStatus string
	Fqdn         string
	ActivePuns   *prometheus.Desc
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(logger *slog.Logger) *Collector

func (*Collector) Collect

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

func (*Collector) Describe

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

type PassengerAppMetrics added in v0.4.0

type PassengerAppMetrics struct {
	Name              string
	Count             int
	ProcCount         int
	Processes         []PassengerProcessMetrics
	RSS               int
	CPU               float64
	RealMemory        int
	RequestsProcessed int
	Runtime           int64
}

type PassengerCollector added in v0.4.0

type PassengerCollector struct {
	Instances  *prometheus.Desc
	Count      *prometheus.Desc
	ProcCount  *prometheus.Desc
	RSS        *prometheus.Desc
	CPU        *prometheus.Desc
	RealMemory *prometheus.Desc
	Requests   *prometheus.Desc
	AvgRuntime *prometheus.Desc
	// contains filtered or unexported fields
}

func NewPassengerCollector added in v0.4.0

func NewPassengerCollector(logger *slog.Logger) *PassengerCollector

type PassengerGroup added in v0.4.0

type PassengerGroup struct {
	AppRoot   string             `xml:"app_root"`
	Processes []PassengerProcess `xml:"processes>process"`
}

type PassengerInfo added in v0.4.0

type PassengerInfo struct {
	SuperGroups []PassengerSuperGroup `xml:"supergroups>supergroup"`
}

type PassengerProcess added in v0.4.0

type PassengerProcess struct {
	RSS               int   `xml:"rss"`
	CPU               int   `xml:"cpu"`
	RealMemory        int   `xml:"real_memory"`
	RequestsProcessed int   `xml:"processed"`
	SpawnStartTime    int64 `xml:"spawn_start_time"`
}

type PassengerProcessMetrics added in v0.4.0

type PassengerProcessMetrics struct {
	RSS               int
	CPU               float64
	RealMemory        int
	RequestsProcessed int
	Runtime           int64
}

type PassengerSuperGroup added in v0.4.0

type PassengerSuperGroup struct {
	Group PassengerGroup `xml:"group"`
}

type ProcessCollector

type ProcessCollector struct {
	RackApps         *prometheus.Desc
	NodeApps         *prometheus.Desc
	PunCpuTime       *prometheus.Desc
	PunMemory        *prometheus.Desc
	PunMemoryPercent *prometheus.Desc
	// contains filtered or unexported fields
}

func NewProcessCollector

func NewProcessCollector(logger *slog.Logger) *ProcessCollector

type ProcessMetrics

type ProcessMetrics struct {
	RackApps         float64
	NodeApps         float64
	PunCpuTime       float64
	PunMemoryRSS     float64
	PunMemoryVMS     float64
	PunMemoryPercent float64
}

Jump to

Keyboard shortcuts

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