metrics

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GameServersStateCount = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "okg_gameservers_state_count",
			Help: "The number of gameservers per state",
		},
		[]string{"state"},
	)
	GameServersOpsStateCount = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "okg_gameservers_opsState_count",
			Help: "The number of gameservers per opsState",
		},
		[]string{"opsState"},
	)
	GameServersTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "okg_gameservers_total",
			Help: "The total of gameservers",
		},
		[]string{},
	)
	GameServerSetsReplicasCount = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "okg_gameserversets_replicas_count",
			Help: "The number of replicas per gameserverset)",
		},
		[]string{"gssName", "gssNs", "gsStatus"},
	)
	GameServerDeletionPriority = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "okg_gameserver_deletion_priority",
			Help: "The deletionPriority of gameserver.)",
		},
		[]string{"gsName", "gsNs"},
	)
	GameServerUpdatePriority = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "okg_gameserver_update_priority",
			Help: "The updatePriority of gameserver.)",
		},
		[]string{"gsName", "gsNs"},
	)
)

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(kruisegameInformerFactory kruisegamevisions.SharedInformerFactory) (*Controller, error)

func (*Controller) Run

func (c *Controller) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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