metrics

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPError

func HTTPError(rsp http.ResponseWriter, err error)

HTTPError sends an error as an HTTP response

func Handler

func Handler(rsp http.ResponseWriter, req *http.Request, stats []*PodStats)

Handler returns metrics in response to an HTTP request

Types

type PodStats

type PodStats struct {
	netstat.NetStats
	Name      string
	Namespace string
}

PodStats represents a pod and the metrics gathered for it

Jump to

Keyboard shortcuts

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