metric

package
v0.0.0-...-e99cc0b Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCount

func BuildCount(builds core.BuildStore)

BuildCount provides metrics for build counts.

func License

func License(license core.LicenseService)

License registers the license metrics.

func PendingBuildCount

func PendingBuildCount(builds core.BuildStore)

PendingBuildCount provides metrics for pending build counts.

func PendingJobCount

func PendingJobCount(stages core.StageStore)

PendingJobCount provides metrics for pending job counts.

func RepoCount

func RepoCount(repos core.RepositoryStore)

RepoCount registers the repository metrics.

func RunningBuildCount

func RunningBuildCount(builds core.BuildStore)

RunningBuildCount provides metrics for running build counts.

func RunningJobCount

func RunningJobCount(stages core.StageStore)

RunningJobCount provides metrics for running job counts.

func UserCount

func UserCount(users core.UserStore)

UserCount provides metrics for registered users.

Types

type Server

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

Server is an http Metrics server.

func NewServer

func NewServer(session core.Session, anonymous bool) *Server

NewServer returns a new metrics server.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP responds to an http.Request and writes system metrics to the response body in plain text format.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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