Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrSkipLabelSet = errors.New("this label set should be skipped")
ErrSkipLabelSet instructs exporter to skip label set
Functions ¶
This section is empty.
Types ¶
type CGroup ¶
type CGroup struct {
// contains filtered or unexported fields
}
CGroup is a decoder that transforms cgroup id to path in cgroupfs
func NewCgroupDecoder ¶ added in v2.3.0
NewCgroupDecoder creates a new cgroup decoder
type Decoder ¶
Decoder transforms byte field value into a byte value representing string to either use as an input for another Decoder or to use as the final label value for Prometheus metrics
type Errno ¶ added in v2.4.1
type Errno struct{}
Errno is a decoder that transforms unsigned errno integers into their string values
type Hex ¶ added in v2.4.0
type Hex struct{}
Hex is a decoder that decodes raw bytes into their hex string representation
type IfName ¶ added in v2.3.1
type IfName struct {
// contains filtered or unexported fields
}
IfName is a decoder that transforms a network interface index into its name.
type InetIP ¶
type InetIP struct{}
InetIP is a decoder that transforms an ip byte representation into a string
type KStack ¶ added in v2.3.0
type KStack struct {
// contains filtered or unexported fields
}
KStack is a decoder that transforms an array of kernel frame addresses to a newline separated stack of symbols
type KSym ¶
type KSym struct {
// contains filtered or unexported fields
}
KSym is a decoder that transforms kernel address to a function name
type MajorMinor ¶
type MajorMinor struct {
// contains filtered or unexported fields
}
MajorMinor is a decoder that transforms minormajor device id into name
type PCIClass ¶ added in v2.3.0
type PCIClass struct{}
PCIClass is a decoder that transforms PCI class id into a name
type PCIDevice ¶ added in v2.3.0
type PCIDevice struct{}
PCIDevice is a decoder that transforms PCI device id into a name
type PCISubClass ¶ added in v2.3.0
type PCISubClass struct{}
PCISubClass is a decoder that transforms PCI class id into a name
type PCIVendor ¶ added in v2.3.0
type PCIVendor struct{}
PCIVendor is a decoder that transforms PCI vendor id into a name
type Regexp ¶
type Regexp struct {
// contains filtered or unexported fields
}
Regexp is a decoder that only allows inputs matching regexp
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set is a set of Decoders that may be applied to produce a label
func (*Set) DecodeLabelsForMetrics ¶ added in v2.4.1
func (s *Set) DecodeLabelsForMetrics(in []byte, name string, labels []config.Label) ([]string, error)
DecodeLabelsForMetrics transforms eBPF map key bytes into a list of label values according to configuration (different label sets require different names). This decoder method variant does caching and is suitable for metrics.
func (*Set) DecodeLabelsForTracing ¶ added in v2.4.1
DecodeLabelsForTracing transforms eBPF map key bytes into a list of label values according to configuration (different label sets require different names). This decoder method variant does not do caching and is suitable for tracing.
type StaticMap ¶
type StaticMap struct{}
StaticMap is a decoded that maps values according to a static map