Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DftPromLogLevel = &promlog.AllowedLevel{} DftPromLogFmt = &promlog.AllowedFormat{} )
Functions ¶
func StartNodeExporter ¶
func StartNodeExporter(conf *NodeExporterConfig)
StartNodeExporter access for quick integration NOT FORGET to run with goroutine
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler wraps an unfiltered http.Handler but uses a filtered handler, created on the fly, if filtering is requested. Create instances with newHandler.
func NewHandler ¶
type NodeExporterConfig ¶
type NodeExporterConfig struct { // such as info PromLogLevel string // such as logfmt PromLogFmt string // such as 9100 ListenPort int // such as /metrics MetricsPath string // such as / ExporterPath string // such as false DisableExporterMetrics bool // such as 40 MaxRequests int // such as false DisableDefaultCollectors bool // such as "" ConfigFile string }
Click to show internal directories.
Click to hide internal directories.