nodeexporter

package
v3.0.0-...-97ade84 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeLabels

func MakeLabels(m *dto.Metric) map[string]string

Get labels from metric

func Parse

func Parse(buf []byte, header http.Header, ignoreTimestamp bool) ([]telegraf.Metric, error)

func ValueType

func ValueType(mt dto.MetricType) telegraf.ValueType

Types

type Config

type Config struct {
	Enable                bool
	DB                    string
	User                  string
	Password              string
	URLs                  []string
	ResponseTimeout       time.Duration
	HttpUsername          string
	HttpPassword          string
	HttpBearerTokenString string
	CaCertFile            string
	CertFile              string
	KeyFile               string
	InsecureSkipVerify    bool
	GatherDuration        time.Duration
	TTL                   int
	IgnoreTimestamp       bool
	Token                 string
}

type NodeExporter

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

func (*NodeExporter) Gather

func (p *NodeExporter) Gather()

func (*NodeExporter) Init

func (p *NodeExporter) Init(_ gin.IRouter) error

func (*NodeExporter) Start

func (p *NodeExporter) Start() error

func (*NodeExporter) Stop

func (p *NodeExporter) Stop() error

func (*NodeExporter) String

func (p *NodeExporter) String() string

func (*NodeExporter) Version

func (p *NodeExporter) Version() string

type Req

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

Jump to

Keyboard shortcuts

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