Documentation
¶
Index ¶
- func CountEntries(id ebpf.MapID) (int, error)
- func FormatBytes(format DisplayFormat, value []byte) string
- func IsLookupSupported(mt ebpf.MapType) bool
- func IsPerCPU(mt ebpf.MapType) bool
- type DisplayFormat
- type MapEntries
- type MapEntry
- type MapExportConfiguration
- type MapInfo
- type MapsWatcher
- type WatcherOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBytes ¶ added in v0.0.2
func FormatBytes(format DisplayFormat, value []byte) string
func IsLookupSupported ¶ added in v0.0.2
Types ¶
type DisplayFormat ¶ added in v0.0.2
type DisplayFormat = string
const ( DisplayFormatHex DisplayFormat = "hex" DisplayFormatString DisplayFormat = "string" DisplayFormatNumber DisplayFormat = "number" )
type MapEntries ¶ added in v0.0.2
type MapEntries struct {
Entries []*MapEntry
}
func GetEntries ¶ added in v0.0.2
func GetEntries(id ebpf.MapID, sort bool) (*MapEntries, error)
type MapExportConfiguration ¶ added in v0.0.2
type MapExportConfiguration struct {
StartID int
EndID int
MetricNameRegexp regexp.Regexp
KeyFormat DisplayFormat
}
func ParseMapExportConfiguration ¶ added in v0.0.2
func ParseMapExportConfiguration(config string) (*MapExportConfiguration, error)
type MapsWatcher ¶
type MapsWatcher interface {
Run(ctx context.Context)
GetMaps() ([]*MapInfo, error)
GetMap(id ebpf.MapID) (*MapInfo, error)
RegisterMetrics(registry *prometheus.Registry)
AddExportConfig(config *MapExportConfiguration)
}
func NewWatcher ¶
func NewWatcher(opts *WatcherOpts, logger zerolog.Logger) MapsWatcher
type WatcherOpts ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.