collector

package
v0.0.0-...-ab07b4f Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package collector is a simple collector for

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expvar

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

Expvar provides the ability to receive metrics from internal services using expvar.

func New

func New(host string) (*Expvar, error)

New creates a Expvar for collection metrics.

func (*Expvar) Collect

func (exp *Expvar) Collect() (map[string]any, error)

Collect captures metrics on the host configure to this endpoint.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL