Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateSwiftInfo ¶
func UpdateSwiftInfo(jsonBytes []byte)
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 NewDiskCollector ¶
func NewDiskCollector() Collector
NewDiskCollector returns a new Collector exposing disk usage.
func NewProxyCollector ¶
func NewProxyCollector() Collector
func NewServerCollector ¶
func NewServerCollector() Collector
NewServerCollector returns a new Collector exposing server stats.
type SwiftCollector ¶
func NewSwiftCollector ¶
func NewSwiftCollector(filters ...string) (*SwiftCollector, error)
func (*SwiftCollector) Collect ¶
func (c *SwiftCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (*SwiftCollector) Describe ¶
func (c *SwiftCollector) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.