tomcat

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseDir        string `toml:"-"`
	Suffix         string `toml:"suffix"`
	GatherServlets bool   `toml:"gather_servlets"`

	httpreq.RequestOptions
	clienttls.ClientConfig
}

func (*Config) Scrape

func (c *Config) Scrape(ctx context.Context, target string, ss *types.Samples) error

type Connector

type Connector struct {
	Name        string      `json:"name"`
	ThreadInfo  ThreadInfo  `json:"threadInfo"`
	RequestInfo RequestInfo `json:"requestInfo"`
}

type Context

type Context struct {
	Name        string    `json:"name"`
	StartTime   string    `json:"startTime"`
	StartupTime string    `json:"startupTime"`
	TldScanTime string    `json:"tldScanTime"`
	Manager     Manager   `json:"manager"`
	Jsp         Jsp       `json:"jsp"`
	Wrapper     []Wrapper `json:"wrapper"`
}

type Jsp

type Jsp struct {
	JspCount       string `json:"jspCount"`
	JspReloadCount string `json:"jspReloadCount"`
}

type JvmMemory

type JvmMemory struct {
	Free  string `json:"free"`
	Total string `json:"total"`
	Max   string `json:"max"`
}

type Manager

type Manager struct {
	ActiveSessions          string `json:"activeSessions"`
	SessionCounter          string `json:"sessionCounter"`
	MaxActive               string `json:"maxActive"`
	RejectedSessions        string `json:"rejectedSessions"`
	ExpiredSessions         string `json:"expiredSessions"`
	SessionMaxAliveTime     string `json:"sessionMaxAliveTime"`
	SessionAverageAliveTime string `json:"sessionAverageAliveTime"`
	ProcessingTime          string `json:"processingTime"`
}

type Memorypool

type Memorypool struct {
	Name           string `json:"name"`
	Type           string `json:"type"`
	UsageInit      string `json:"usageInit"`
	UsageCommitted string `json:"usageCommitted"`
	UsageMax       string `json:"usageMax"`
	UsageUsed      string `json:"usageUsed"`
}

type RequestInfo

type RequestInfo struct {
	MaxTime        string `json:"maxTime"`
	ProcessingTime string `json:"processingTime"`
	RequestCount   string `json:"requestCount"`
	ErrorCount     string `json:"errorCount"`
	BytesReceived  string `json:"bytesReceived"`
	BytesSent      string `json:"bytesSent"`
}

type ResponseStruct

type ResponseStruct struct {
	Tomcat TomcatStruct `json:"tomcat"`
}

type ThreadInfo

type ThreadInfo struct {
	MaxThreads         string `json:"maxThreads"`
	CurrentThreadCount string `json:"currentThreadCount"`
	CurrentThreadsBusy string `json:"currentThreadsBusy"`
}

type Tomcat

type Tomcat struct{}

func (*Tomcat) ParseConfig

func (*Tomcat) ParseConfig(baseDir string, bs []byte) (any, error)

func (*Tomcat) Scrape

func (*Tomcat) Scrape(ctx context.Context, target string, c any, ss *types.Samples) error

type TomcatJvm

type TomcatJvm struct {
	JvmMemory      JvmMemory    `json:"memory"`
	JvmMemoryPools []Memorypool `json:"memorypool"`
}

type TomcatStruct

type TomcatStruct struct {
	TomcatJvm        TomcatJvm   `json:"jvm"`
	TomcatConnectors []Connector `json:"connector"`
	TomcatContexts   []Context   `json:"context"`
}

type Wrapper

type Wrapper struct {
	ServletName    string `json:"servletName"`
	ProcessingTime string `json:"processingTime"`
	MaxTime        string `json:"maxTime"`
	RequestCount   string `json:"requestCount"`
	ErrorCount     string `json:"errorCount"`
	LoadTime       string `json:"loadTime"`
	ClassLoadTime  string `json:"classLoadTime"`
}

Jump to

Keyboard shortcuts

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