prometheusbuiltin

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: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(k8sClient kubernetes.Interface) api.Agent

Types

type PrometheusBuiltin

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

PrometheusBuiltin applies `prometheus.io` annotations on stats service so that Prometheus can scrape this stats service. ref: https://github.com/prometheus/prometheus/blob/a51c500e30e96df4026282c8a4f743cf6a8827f1/documentation/examples/prometheus-kubernetes.yml#L136

func (*PrometheusBuiltin) CreateOrUpdate

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

func (*PrometheusBuiltin) Delete

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

func (*PrometheusBuiltin) GetType

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

Jump to

Keyboard shortcuts

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