Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- Variables
- type Collector
- func (c *Collector) Build(_ *slog.Logger, miSession *mi.Session) error
- func (c *Collector) Close(_ *slog.Logger) error
- func (c *Collector) Collect(_ *types.ScrapeContext, _ *slog.Logger, ch chan<- prometheus.Metric) error
- func (c *Collector) GetName() string
- func (c *Collector) GetPerfCounter(_ *slog.Logger) ([]string, error)
- type Config
- type Win32_PerfRawData_NETFramework_NETCLRExceptions
- type Win32_PerfRawData_NETFramework_NETCLRInterop
- type Win32_PerfRawData_NETFramework_NETCLRJit
- type Win32_PerfRawData_NETFramework_NETCLRLoading
- type Win32_PerfRawData_NETFramework_NETCLRLocksAndThreads
- type Win32_PerfRawData_NETFramework_NETCLRMemory
- type Win32_PerfRawData_NETFramework_NETCLRRemoting
- type Win32_PerfRawData_NETFramework_NETCLRSecurity
Constants ¶
View Source
const Name = "netframework"
Variables ¶
View Source
var ConfigDefaults = Config{ CollectorsEnabled: []string{ collectorClrExceptions, collectorClrInterop, collectorClrJIT, collectorClrLoading, collectorClrLocksAndThreads, collectorClrMemory, collectorClrRemoting, collectorClrSecurity, }, }
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
A Collector is a Prometheus Collector for WMI Win32_PerfRawData_NETFramework_NETCLRExceptions metrics.
func NewWithFlags ¶
func NewWithFlags(_ *kingpin.Application) *Collector
func (*Collector) Collect ¶
func (c *Collector) Collect(_ *types.ScrapeContext, _ *slog.Logger, ch chan<- prometheus.Metric) error
Collect sends the metric values for each metric to the provided prometheus Metric channel.
type Win32_PerfRawData_NETFramework_NETCLRExceptions ¶
type Win32_PerfRawData_NETFramework_NETCLRExceptions struct { Name string `mi:"Name"` NumberofExcepsThrown uint32 `mi:"NumberofExcepsThrown"` NumberofExcepsThrownPersec uint32 `mi:"NumberofExcepsThrownPersec"` NumberofFiltersPersec uint32 `mi:"NumberofFiltersPersec"` NumberofFinallysPersec uint32 `mi:"NumberofFinallysPersec"` ThrowToCatchDepthPersec uint32 `mi:"ThrowToCatchDepthPersec"` }
type Win32_PerfRawData_NETFramework_NETCLRInterop ¶
type Win32_PerfRawData_NETFramework_NETCLRInterop struct { Name string `mi:"Name"` NumberofCCWs uint32 `mi:"NumberofCCWs"` Numberofmarshalling uint32 `mi:"Numberofmarshalling"` NumberofStubs uint32 `mi:"NumberofStubs"` NumberofTLBexportsPersec uint32 `mi:"NumberofTLBexportsPersec"` NumberofTLBimportsPersec uint32 `mi:"NumberofTLBimportsPersec"` }
type Win32_PerfRawData_NETFramework_NETCLRJit ¶
type Win32_PerfRawData_NETFramework_NETCLRJit struct { Name string `mi:"Name"` Frequency_PerfTime uint32 `mi:"Frequency_PerfTime"` ILBytesJittedPersec uint32 `mi:"ILBytesJittedPersec"` NumberofILBytesJitted uint32 `mi:"NumberofILBytesJitted"` NumberofMethodsJitted uint32 `mi:"NumberofMethodsJitted"` PercentTimeinJit uint32 `mi:"PercentTimeinJit"` StandardJitFailures uint32 `mi:"StandardJitFailures"` TotalNumberofILBytesJitted uint32 `mi:"TotalNumberofILBytesJitted"` }
type Win32_PerfRawData_NETFramework_NETCLRLoading ¶
type Win32_PerfRawData_NETFramework_NETCLRLoading struct { Name string `mi:"Name"` AssemblySearchLength uint32 `mi:"AssemblySearchLength"` BytesinLoaderHeap uint64 `mi:"BytesinLoaderHeap"` Currentappdomains uint32 `mi:"Currentappdomains"` CurrentAssemblies uint32 `mi:"CurrentAssemblies"` CurrentClassesLoaded uint32 `mi:"CurrentClassesLoaded"` PercentTimeLoading uint64 `mi:"PercentTimeLoading"` Rateofappdomains uint32 `mi:"Rateofappdomains"` Rateofappdomainsunloaded uint32 `mi:"Rateofappdomainsunloaded"` RateofAssemblies uint32 `mi:"RateofAssemblies"` RateofClassesLoaded uint32 `mi:"RateofClassesLoaded"` RateofLoadFailures uint32 `mi:"RateofLoadFailures"` TotalAppdomains uint32 `mi:"TotalAppdomains"` Totalappdomainsunloaded uint32 `mi:"Totalappdomainsunloaded"` TotalAssemblies uint32 `mi:"TotalAssemblies"` TotalClassesLoaded uint32 `mi:"TotalClassesLoaded"` TotalNumberofLoadFailures uint32 `mi:"TotalNumberofLoadFailures"` }
type Win32_PerfRawData_NETFramework_NETCLRLocksAndThreads ¶
type Win32_PerfRawData_NETFramework_NETCLRLocksAndThreads struct { Name string `mi:"Name"` ContentionRatePersec uint32 `mi:"ContentionRatePersec"` CurrentQueueLength uint32 `mi:"CurrentQueueLength"` NumberofcurrentlogicalThreads uint32 `mi:"NumberofcurrentlogicalThreads"` NumberofcurrentphysicalThreads uint32 `mi:"NumberofcurrentphysicalThreads"` Numberofcurrentrecognizedthreads uint32 `mi:"Numberofcurrentrecognizedthreads"` Numberoftotalrecognizedthreads uint32 `mi:"Numberoftotalrecognizedthreads"` QueueLengthPeak uint32 `mi:"QueueLengthPeak"` QueueLengthPersec uint32 `mi:"QueueLengthPersec"` RateOfRecognizedThreadsPersec uint32 `mi:"RateOfRecognizedThreadsPersec"` TotalNumberofContentions uint32 `mi:"TotalNumberofContentions"` }
type Win32_PerfRawData_NETFramework_NETCLRMemory ¶
type Win32_PerfRawData_NETFramework_NETCLRMemory struct { Name string `mi:"Name"` AllocatedBytesPersec uint64 `mi:"AllocatedBytesPersec"` FinalizationSurvivors uint64 `mi:"FinalizationSurvivors"` Frequency_PerfTime uint64 `mi:"Frequency_PerfTime"` Gen0heapsize uint64 `mi:"Gen0heapsize"` Gen0PromotedBytesPerSec uint64 `mi:"Gen0PromotedBytesPersec"` Gen1heapsize uint64 `mi:"Gen1heapsize"` Gen1PromotedBytesPerSec uint64 `mi:"Gen1PromotedBytesPersec"` Gen2heapsize uint64 `mi:"Gen2heapsize"` LargeObjectHeapsize uint64 `mi:"LargeObjectHeapsize"` NumberBytesinallHeaps uint64 `mi:"NumberBytesinallHeaps"` NumberGCHandles uint64 `mi:"NumberGCHandles"` NumberGen0Collections uint64 `mi:"NumberGen0Collections"` NumberGen1Collections uint64 `mi:"NumberGen1Collections"` NumberGen2Collections uint64 `mi:"NumberGen2Collections"` NumberInducedGC uint64 `mi:"NumberInducedGC"` NumberofPinnedObjects uint64 `mi:"NumberofPinnedObjects"` NumberofSinkBlocksinuse uint64 `mi:"NumberofSinkBlocksinuse"` NumberTotalcommittedBytes uint64 `mi:"NumberTotalcommittedBytes"` NumberTotalreservedBytes uint64 `mi:"NumberTotalreservedBytes"` // PercentTimeinGC has countertype=PERF_RAW_FRACTION. // Formula: (100 * CounterValue) / BaseValue // By docs https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/scripting-articles/ms974615(v=msdn.10)#perf_raw_fraction PercentTimeinGC uint32 `mi:"PercentTimeinGC"` // BaseValue is just a "magic" number used to make the calculation come out right. PercentTimeinGC_base uint32 `mi:"PercentTimeinGC_base"` ProcessID uint64 `mi:"ProcessID"` PromotedFinalizationMemoryfromGen0 uint64 `mi:"PromotedFinalizationMemoryfromGen0"` PromotedMemoryfromGen0 uint64 `mi:"PromotedMemoryfromGen0"` PromotedMemoryfromGen1 uint64 `mi:"PromotedMemoryfromGen1"` }
type Win32_PerfRawData_NETFramework_NETCLRRemoting ¶
type Win32_PerfRawData_NETFramework_NETCLRRemoting struct { Name string `mi:"Name"` Channels uint32 `mi:"Channels"` ContextBoundClassesLoaded uint32 `mi:"ContextBoundClassesLoaded"` ContextBoundObjectsAllocPersec uint32 `mi:"ContextBoundObjectsAllocPersec"` ContextProxies uint32 `mi:"ContextProxies"` Contexts uint32 `mi:"Contexts"` RemoteCallsPersec uint32 `mi:"RemoteCallsPersec"` TotalRemoteCalls uint32 `mi:"TotalRemoteCalls"` }
type Win32_PerfRawData_NETFramework_NETCLRSecurity ¶
type Win32_PerfRawData_NETFramework_NETCLRSecurity struct { Name string `mi:"Name"` Frequency_PerfTime uint32 `mi:"Frequency_PerfTime"` NumberLinkTimeChecks uint32 `mi:"NumberLinkTimeChecks"` PercentTimeinRTchecks uint32 `mi:"PercentTimeinRTchecks"` PercentTimeSigAuthenticating uint64 `mi:"PercentTimeSigAuthenticating"` StackWalkDepth uint32 `mi:"StackWalkDepth"` TotalRuntimeChecks uint32 `mi:"TotalRuntimeChecks"` }
Click to show internal directories.
Click to hide internal directories.