prometheusoperator

package
v0.30.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(at api.AgentType, k8sClient kubernetes.Interface, promClient prom.MonitoringV1Interface) api.Agent

Types

type PrometheusOperator

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

PrometheusOperator creates `ServiceMonitor` so that Prometheus operator can generate necessary config for Prometheus.

func (*PrometheusOperator) CreateOrUpdate

func (agent *PrometheusOperator) CreateOrUpdate(sp api.StatsAccessor, new *api.AgentSpec) (kutil.VerbType, error)

func (*PrometheusOperator) Delete

func (agent *PrometheusOperator) Delete(sp api.StatsAccessor) (kutil.VerbType, error)

func (*PrometheusOperator) GetType

func (agent *PrometheusOperator) GetType() api.AgentType

Jump to

Keyboard shortcuts

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