plugins

package
v0.0.0-...-d39b95d Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PolyaxonAuthToken polyaxon auth token
	PolyaxonAuthToken = "POLYAXON_AUTH_TOKEN"

	// PolyaxonInternalToken polyaxon internal token
	PolyaxonInternalToken = "POLYAXON_SECRET_INTERNAL_TOKEN"

	// PolyaxonAPIHost polyaxon api host
	PolyaxonAPIHost = "POLYAXON_PROXY_API_HOST"

	// PolyaxonAPIPort polyaxon api port
	PolyaxonAPIPort = "POLYAXON_PROXY_API_PORT"

	// PolyaxonStreamsHost polyaxon streams host
	PolyaxonStreamsHost = "POLYAXON_PROXY_STREAMS_HOST"

	// PolyaxonStreamsPort polyaxon api port
	PolyaxonStreamsPort = "POLYAXON_PROXY_STREAMS_PORT"
)

Variables

This section is empty.

Functions

func CollectPolyaxonRunLogs

func CollectPolyaxonRunLogs(namespace, owner, project, uuid string, kind string, log logr.Logger) error

CollectPolyaxonRunLogs archives logs before removing the operation

func LogPolyaxonRunStatus

func LogPolyaxonRunStatus(owner, project, uuid string, statusCond operationv1.OperationCondition, log logr.Logger) error

LogPolyaxonRunStatus creates polyaxon run status

func NotifyPolyaxonRunStatus

func NotifyPolyaxonRunStatus(namespace, name, owner, project, uuid string, statusCond operationv1.OperationCondition, connections []string, log logr.Logger) error

NotifyPolyaxonRunStatus creates polyaxon run status

Types

type Metrics

type Metrics struct {
	OperationsRunning       *prometheus.GaugeVec
	OperationsCreated       *prometheus.CounterVec
	OperationsFailedCreated *prometheus.CounterVec
	// contains filtered or unexported fields
}

Metrics exposed by the operator

func NewMetrics

func NewMetrics(cli client.Client) *Metrics

NewMetrics prometheus initializer

func (*Metrics) Collect

func (m *Metrics) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (*Metrics) Describe

func (m *Metrics) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface.

Jump to

Keyboard shortcuts

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