Documentation ¶
Index ¶
- Variables
- func IsNoDataError(err error) bool
- func SetPodmanCollectorState(name string, state bool)
- type Collector
- func NewContainerStatsCollector(logger log.Logger) (Collector, error)
- func NewImageStatsCollector(logger log.Logger) (Collector, error)
- func NewNetworkStatsCollector(logger log.Logger) (Collector, error)
- func NewPodStatsCollector(logger log.Logger) (Collector, error)
- func NewSystemCollector(logger log.Logger) (Collector, error)
- func NewVolumeStatsCollector(logger log.Logger) (Collector, error)
- type PodmanCollector
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNoData indicates the collector found no data to collect, but had no other error. ErrNoData = errors.New("collector returned no data") )
Functions ¶
func IsNoDataError ¶
IsNoDataError returns true if error is no data error
func SetPodmanCollectorState ¶
SetPodmanCollectorState enable/disable collectors
Types ¶
type Collector ¶
type Collector interface { // Get new metrics and expose them via prometheus registry. Update(ch chan<- prometheus.Metric) error }
Collector is the interface a collector has to implement.
func NewContainerStatsCollector ¶
NewContainerStatsCollector returns a Collector exposing containers stats information
func NewImageStatsCollector ¶
NewImageStatsCollector returns a Collector exposing image stats information
func NewNetworkStatsCollector ¶
NewNetworkStatsCollector returns a Collector exposing network stats information
func NewPodStatsCollector ¶
NewPodStatsCollector returns a Collector exposing pod stats information
func NewSystemCollector ¶
NewSystemCollector returns a Collector exposing podman system information
type PodmanCollector ¶
type PodmanCollector struct { Collectors map[string]Collector // contains filtered or unexported fields }
PodmanCollector implements the prometheus.Collector interface.
func NewPodmanCollector ¶
func NewPodmanCollector(logger log.Logger) (*PodmanCollector, error)
NewPodmanCollector creates a new PodmanCollector.
func (PodmanCollector) Collect ¶
func (p PodmanCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (PodmanCollector) Describe ¶
func (p PodmanCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.