Documentation ¶
Overview ¶
Package metrics records stats of agones controllers
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MetricResyncPeriod is the interval to re-synchronize metrics based on indexed cache. MetricResyncPeriod = time.Second * 1 )
Functions ¶
func RegisterPrometheusExporter ¶
RegisterPrometheusExporter register a prometheus exporter to OpenCensus with a given prometheus metric registry. It will automatically add go runtime and process metrics using default prometheus collectors. The function return an http.handler that you can use to expose the prometheus endpoint.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is a metrics controller
func NewController ¶
func NewController( kubeClient kubernetes.Interface, agonesClient versioned.Interface, agonesInformerFactory externalversions.SharedInformerFactory) *Controller
NewController returns a new metrics controller
func (*Controller) Run ¶
func (c *Controller) Run(workers int, stop <-chan struct{}) error
Run the Metrics controller. Will block until stop is closed. Collect metrics via cache changes and parse the cache periodically to record resource counts.
type GameServerCount ¶
type GameServerCount map[stablev1alpha1.State]map[string]int64
GameServerCount is the count of gameserver per current state and per fleet name
Click to show internal directories.
Click to hide internal directories.