Documentation

Index

Constants

View Source
const (
	// TODO: Make package-local
	Namespace = "wmi"
)

    ...

    Variables

    View Source
    var Factories = make(map[string]func() (Collector, error))

      Factories ...

      Functions

      This section is empty.

      Types

      type Collector

      type Collector interface {
      	// Get new metrics and expose them via prometheus registry.
      	Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) (err error)
      }

        Collector is the interface a collector has to implement.

        func NewTextFileCollector

        func NewTextFileCollector() (Collector, error)

          NewTextFileCollector returns a new Collector exposing metrics read from files in the given textfile directory.

          func NewThermalZoneCollector

          func NewThermalZoneCollector() (Collector, error)

            NewThermalZoneCollector ...

            type ScrapeContext

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

            func PrepareScrapeContext

            func PrepareScrapeContext() (*ScrapeContext, error)

              PrepareScrapeContext creates a ScrapeContext to be used during a single scrape

              type Win32_PerfRawData_Counters_ThermalZoneInformation

              type Win32_PerfRawData_Counters_ThermalZoneInformation struct {
              	Name string
              
              	HighPrecisionTemperature uint32
              	PercentPassiveLimit      uint32
              	ThrottleReasons          uint32
              }

                Win32_PerfRawData_Counters_ThermalZoneInformation docs: https://wutils.com/wmi/root/cimv2/win32_perfrawdata_counters_thermalzoneinformation/