mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-09 22:46:36 +00:00
58 lines
2.7 KiB
Go
58 lines
2.7 KiB
Go
package cpu
|
|
|
|
// Processor performance counters.
|
|
const (
|
|
C1TimeSeconds = "% C1 Time"
|
|
C2TimeSeconds = "% C2 Time"
|
|
C3TimeSeconds = "% C3 Time"
|
|
C1TransitionsTotal = "C1 Transitions/sec"
|
|
C2TransitionsTotal = "C2 Transitions/sec"
|
|
C3TransitionsTotal = "C3 Transitions/sec"
|
|
ClockInterruptsTotal = "Clock Interrupts/sec"
|
|
DPCsQueuedTotal = "DPCs Queued/sec"
|
|
DPCTimeSeconds = "% DPC Time"
|
|
IdleBreakEventsTotal = "Idle Break Events/sec"
|
|
IdleTimeSeconds = "% Idle Time"
|
|
InterruptsTotal = "Interrupts/sec"
|
|
InterruptTimeSeconds = "% Interrupt Time"
|
|
ParkingStatus = "Parking Status"
|
|
PerformanceLimitPercent = "% Performance Limit"
|
|
PriorityTimeSeconds = "% Priority Time"
|
|
PrivilegedTimeSeconds = "% Privileged Time"
|
|
PrivilegedUtilitySeconds = "% Privileged Utility"
|
|
ProcessorFrequencyMHz = "Processor Frequency"
|
|
ProcessorPerformance = "% Processor Performance"
|
|
ProcessorTimeSeconds = "% Processor Time"
|
|
ProcessorUtilityRate = "% Processor Utility"
|
|
UserTimeSeconds = "% User Time"
|
|
)
|
|
|
|
type perflibProcessorInformation struct {
|
|
Name string
|
|
C1TimeSeconds float64 `perflib:"% C1 Time"`
|
|
C2TimeSeconds float64 `perflib:"% C2 Time"`
|
|
C3TimeSeconds float64 `perflib:"% C3 Time"`
|
|
C1TransitionsTotal float64 `perflib:"C1 Transitions/sec"`
|
|
C2TransitionsTotal float64 `perflib:"C2 Transitions/sec"`
|
|
C3TransitionsTotal float64 `perflib:"C3 Transitions/sec"`
|
|
ClockInterruptsTotal float64 `perflib:"Clock Interrupts/sec"`
|
|
DPCsQueuedTotal float64 `perflib:"DPCs Queued/sec"`
|
|
DPCTimeSeconds float64 `perflib:"% DPC Time"`
|
|
IdleBreakEventsTotal float64 `perflib:"Idle Break Events/sec"`
|
|
IdleTimeSeconds float64 `perflib:"% Idle Time"`
|
|
InterruptsTotal float64 `perflib:"Interrupts/sec"`
|
|
InterruptTimeSeconds float64 `perflib:"% Interrupt Time"`
|
|
ParkingStatus float64 `perflib:"Parking Status"`
|
|
PerformanceLimitPercent float64 `perflib:"% Performance Limit"`
|
|
PriorityTimeSeconds float64 `perflib:"% Priority Time"`
|
|
PrivilegedTimeSeconds float64 `perflib:"% Privileged Time"`
|
|
PrivilegedUtilitySeconds float64 `perflib:"% Privileged Utility"`
|
|
ProcessorFrequencyMHz float64 `perflib:"Processor Frequency"`
|
|
ProcessorPerformance float64 `perflib:"% Processor Performance"`
|
|
ProcessorMPerf float64 `perflib:"% Processor Performance,secondvalue"`
|
|
ProcessorTimeSeconds float64 `perflib:"% Processor Time"`
|
|
ProcessorUtilityRate float64 `perflib:"% Processor Utility"`
|
|
ProcessorRTC float64 `perflib:"% Processor Utility,secondvalue"`
|
|
UserTimeSeconds float64 `perflib:"% User Time"`
|
|
}
|