collector

package
v0.0.0-...-b60177f Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Namespace = "locks"

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

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

Exporter collects metrics from a local Raspberry Pi

func New

func New(logger *logrus.Logger, procfsPath string) (*Collector, error)

New returns an initialized collector

func (*Collector) Collect

func (c *Collector) Collect(ch chan<- prometheus.Metric)

Collect fetches file lock statistics from the local system

func (*Collector) Describe

func (c *Collector) Describe(ch chan<- *prometheus.Desc)

Describe returns all possible metric descriptions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳