metrics

package
v0.0.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func NewRegistry

func NewRegistry() Registry

func (*Registry) BuildFailed

func (r *Registry) BuildFailed()

BuildFailed updates all Prometheus metrics related to build.

`build_status` counter is set to 0. `completed_build_total` increases with success label set to false.

func (*Registry) BuildSuccessful

func (r *Registry) BuildSuccessful()

BuildSuccessful updates all Prometheus metrics related to build.

`build_status` counter is set to 1. `completed_build_total` increases with success label set to true.

Jump to

Keyboard shortcuts

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