exporter

package module
v0.0.0-...-2d292ce Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBasicCollector

func NewBasicCollector(stats func() ([]NginxStats, error)) prometheus.Collector

NewBasicCollector constructs a collector using a stats function.

Types

type Connections

type Connections struct {
	// Type is one of (Reading - Writing - Waiting)
	Type string

	// Total number of connections
	Total float64
}

type NginxStats

type NginxStats struct {
	// Nginx active connections
	ConnectionsActive float64

	// Connections (Reading - Writing - Waiting)
	Connections []Connections
}

NginxStats nginx basic stats

func ScanBasicStats

func ScanBasicStats(r io.Reader) ([]NginxStats, error)

ScanBasicStats scans and parses nginx basic stats

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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