iis

package
v0.30.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	CurrentApplicationPoolState        = "Current Application Pool State"
	CurrentApplicationPoolUptime       = "Current Application Pool Uptime"
	CurrentWorkerProcesses             = "Current Worker Processes"
	MaximumWorkerProcesses             = "Maximum Worker Processes"
	RecentWorkerProcessFailures        = "Recent Worker Process Failures"
	TimeSinceLastWorkerProcessFailure  = "Time Since Last Worker Process Failure"
	TotalApplicationPoolRecycles       = "Total Application Pool Recycles"
	TotalApplicationPoolUptime         = "Total Application Pool Uptime"
	TotalWorkerProcessesCreated        = "Total Worker Processes Created"
	TotalWorkerProcessFailures         = "Total Worker Process Failures"
	TotalWorkerProcessPingFailures     = "Total Worker Process Ping Failures"
	TotalWorkerProcessShutdownFailures = "Total Worker Process Shutdown Failures"
	TotalWorkerProcessStartupFailures  = "Total Worker Process Startup Failures"
)
View Source
const (
	Threads        = "Active Threads Count"
	MaximumThreads = "Maximum Threads Count"

	RequestsTotal  = "Total HTTP Requests Served"
	RequestsActive = "Active Requests"

	ActiveFlushedEntries = "Active Flushed Entries"

	CurrentFileCacheMemoryUsage = "Current File Cache Memory Usage"
	MaximumFileCacheMemoryUsage = "Maximum File Cache Memory Usage"
	FileCacheFlushesTotal       = "File Cache Flushes"
	FileCacheHitsTotal          = "File Cache Hits"
	FileCacheMissesTotal        = "File Cache Misses"
	FilesCached                 = "Current Files Cached"
	FilesCachedTotal            = "Total Files Cached"
	FilesFlushedTotal           = "Total Flushed Files"

	URICacheFlushesTotal       = "Total Flushed URIs"
	URICacheFlushesTotalKernel = "Total Flushed URIs"
	URIsFlushedTotalKernel     = "Kernel: Total Flushed URIs"
	URICacheHitsTotal          = "URI Cache Hits"
	URICacheHitsTotalKernel    = "Kernel: URI Cache Hits"
	URICacheMissesTotal        = "URI Cache Misses"
	URICacheMissesTotalKernel  = "Kernel: URI Cache Misses"
	URIsCached                 = "Current URIs Cached"
	URIsCachedKernel           = "Kernel: Current URIs Cached"
	URIsCachedTotal            = "Total URIs Cached"
	URIsCachedTotalKernel      = "Total URIs Cached"
	URIsFlushedTotal           = "Total Flushed URIs"

	MetaDataCacheHits    = "Metadata Cache Hits"
	MetaDataCacheMisses  = "Metadata Cache Misses"
	MetadataCached       = "Current Metadata Cached"
	MetadataCacheFlushes = "Metadata Cache Flushes"
	MetadataCachedTotal  = "Total Metadata Cached"
	MetadataFlushedTotal = "Total Flushed Metadata"

	OutputCacheActiveFlushedItems = "Output Cache Current Flushed Items"
	OutputCacheItems              = "Output Cache Current Items"
	OutputCacheMemoryUsage        = "Output Cache Current Memory Usage"
	OutputCacheHitsTotal          = "Output Cache Total Hits"
	OutputCacheMissesTotal        = "Output Cache Total Misses"
	OutputCacheFlushedItemsTotal  = "Output Cache Total Flushed Items"
	OutputCacheFlushesTotal       = "Output Cache Total Flushes"

	// IIS8
	RequestErrors500 = "% 500 HTTP Response Sent"
	RequestErrors503 = "% 503 HTTP Response Sent"
	RequestErrors404 = "% 404 HTTP Response Sent"
	RequestErrors403 = "% 403 HTTP Response Sent"
	RequestErrors401 = "% 401 HTTP Response Sent"

	WebSocketRequestsActive      = "WebSocket Active Requests"
	WebSocketConnectionAttempts  = "WebSocket Connection Attempts / Sec"
	WebSocketConnectionsAccepted = "WebSocket Connections Accepted / Sec"
	WebSocketConnectionsRejected = "WebSocket Connections Rejected / Sec"
)
View Source
const (
	CurrentAnonymousUsers               = "Current Anonymous Users"
	CurrentBlockedAsyncIORequests       = "Current Blocked Async I/O Requests"
	CurrentCGIRequests                  = "Current CGI Requests"
	CurrentConnections                  = "Current Connections"
	CurrentISAPIExtensionRequests       = "Current ISAPI Extension Requests"
	CurrentNonAnonymousUsers            = "Current NonAnonymous Users"
	ServiceUptime                       = "Service Uptime"
	TotalBytesReceived                  = "Total Bytes Received"
	TotalBytesSent                      = "Total Bytes Sent"
	TotalAnonymousUsers                 = "Total Anonymous Users"
	TotalBlockedAsyncIORequests         = "Total Blocked Async I/O Requests"
	TotalCGIRequests                    = "Total CGI Requests"
	TotalConnectionAttemptsAllInstances = "Total Connection Attempts (all instances)"
	TotalFilesReceived                  = "Total Files Received"
	TotalFilesSent                      = "Total Files Sent"
	TotalISAPIExtensionRequests         = "Total ISAPI Extension Requests"
	TotalLockedErrors                   = "Total Locked Errors"
	TotalLogonAttempts                  = "Total Logon Attempts"
	TotalNonAnonymousUsers              = "Total NonAnonymous Users"
	TotalNotFoundErrors                 = "Total Not Found Errors"
	TotalRejectedAsyncIORequests        = "Total Rejected Async I/O Requests"
	TotalCopyRequests                   = "Total Copy Requests"
	TotalDeleteRequests                 = "Total Delete Requests"
	TotalGetRequests                    = "Total Get Requests"
	TotalHeadRequests                   = "Total Head Requests"
	TotalLockRequests                   = "Total Lock Requests"
	TotalMkcolRequests                  = "Total Mkcol Requests"
	TotalMoveRequests                   = "Total Move Requests"
	TotalOptionsRequests                = "Total Options Requests"
	TotalOtherRequests                  = "Total Other Request Methods"
	TotalPostRequests                   = "Total Post Requests"
	TotalPropfindRequests               = "Total Propfind Requests"
	TotalProppatchRequests              = "Total Proppatch Requests"
	TotalPutRequests                    = "Total Put Requests"
	TotalSearchRequests                 = "Total Search Requests"
	TotalTraceRequests                  = "Total Trace Requests"
	TotalUnlockRequests                 = "Total Unlock Requests"
)
View Source
const (
	ServiceCacheActiveFlushedEntries          = "Active Flushed Entries"
	ServiceCacheCurrentFileCacheMemoryUsage   = "Current File Cache Memory Usage"
	ServiceCacheMaximumFileCacheMemoryUsage   = "Maximum File Cache Memory Usage"
	ServiceCacheFileCacheFlushesTotal         = "File Cache Flushes"
	ServiceCacheFileCacheHitsTotal            = "File Cache Hits"
	ServiceCacheFileCacheMissesTotal          = "File Cache Misses"
	ServiceCacheFilesCached                   = "Current Files Cached"
	ServiceCacheFilesCachedTotal              = "Total Files Cached"
	ServiceCacheFilesFlushedTotal             = "Total Flushed Files"
	ServiceCacheURICacheFlushesTotal          = "Total Flushed URIs"
	ServiceCacheURICacheFlushesTotalKernel    = "Total Flushed URIs"
	ServiceCacheURIsFlushedTotalKernel        = "Kernel: Total Flushed URIs"
	ServiceCacheURICacheHitsTotal             = "URI Cache Hits"
	ServiceCacheURICacheHitsTotalKernel       = "Kernel: URI Cache Hits"
	ServiceCacheURICacheMissesTotal           = "URI Cache Misses"
	ServiceCacheURICacheMissesTotalKernel     = "Kernel: URI Cache Misses"
	ServiceCacheURIsCached                    = "Current URIs Cached"
	ServiceCacheURIsCachedKernel              = "Kernel: Current URIs Cached"
	ServiceCacheURIsCachedTotal               = "Total URIs Cached"
	ServiceCacheURIsCachedTotalKernel         = "Total URIs Cached"
	ServiceCacheURIsFlushedTotal              = "Total Flushed URIs"
	ServiceCacheMetaDataCacheHits             = "Metadata Cache Hits"
	ServiceCacheMetaDataCacheMisses           = "Metadata Cache Misses"
	ServiceCacheMetadataCached                = "Current Metadata Cached"
	ServiceCacheMetadataCacheFlushes          = "Metadata Cache Flushes"
	ServiceCacheMetadataCachedTotal           = "Total Metadata Cached"
	ServiceCacheMetadataFlushedTotal          = "Total Flushed Metadata"
	ServiceCacheOutputCacheActiveFlushedItems = "Output Cache Current Flushed Items"
	ServiceCacheOutputCacheItems              = "Output Cache Current Items"
	ServiceCacheOutputCacheMemoryUsage        = "Output Cache Current Memory Usage"
	ServiceCacheOutputCacheHitsTotal          = "Output Cache Total Hits"
	ServiceCacheOutputCacheMissesTotal        = "Output Cache Total Misses"
	ServiceCacheOutputCacheFlushedItemsTotal  = "Output Cache Total Flushed Items"
	ServiceCacheOutputCacheFlushesTotal       = "Output Cache Total Flushes"
)
View Source
const Name = "iis"

Variables

View Source
var ConfigDefaults = Config{
	SiteInclude: types.RegExpAny,
	SiteExclude: types.RegExpEmpty,
	AppInclude:  types.RegExpAny,
	AppExclude:  types.RegExpEmpty,
}

Functions

This section is empty.

Types

type Collector

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

func New

func New(config *Config) *Collector

func NewWithFlags

func NewWithFlags(app *kingpin.Application) *Collector

func (*Collector) Build

func (c *Collector) Build(logger *slog.Logger, _ *mi.Session) error

func (*Collector) Close

func (c *Collector) Close() error

func (*Collector) Collect

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

Collect sends the metric values for each metric to the provided prometheus Metric channel.

func (*Collector) GetName

func (c *Collector) GetName() string

type Config

type Config struct {
	SiteInclude *regexp.Regexp `yaml:"site_include"`
	SiteExclude *regexp.Regexp `yaml:"site_exclude"`
	AppInclude  *regexp.Regexp `yaml:"app_include"`
	AppExclude  *regexp.Regexp `yaml:"app_exclude"`
}

Jump to

Keyboard shortcuts

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