metrics

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstrumentedClient added in v0.7.0

func NewInstrumentedClient(name string, client *http.Client) *http.Client

NewInstrumentedClient creates an instrumented client by wrapping the given client with prometheus http middleware. The given name is added as a label to the metrics to distinguish between different client types (aws, google, azure etc..)

Types

type LocalCollector added in v0.15.0

type LocalCollector struct {
	Ctx context.Context
	Mgr manager.Manager
}

func (*LocalCollector) Collect added in v0.15.0

func (c *LocalCollector) Collect(ch chan<- prometheus.Metric)

func (*LocalCollector) Describe added in v0.15.0

func (c *LocalCollector) Describe(ch chan<- *prometheus.Desc)

type ProbeCollector added in v0.16.0

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

func NewProbeCollector added in v0.16.0

func NewProbeCollector() *ProbeCollector

func (*ProbeCollector) Collect added in v0.16.0

func (c *ProbeCollector) Collect(ch chan<- prometheus.Metric)

func (*ProbeCollector) DecProbeCounter added in v0.16.0

func (c *ProbeCollector) DecProbeCounter(name, namespace, hostname string)

DecProbeCounter decrements the counter for a specific probe

func (*ProbeCollector) Describe added in v0.16.0

func (c *ProbeCollector) Describe(ch chan<- *prometheus.Desc)

func (*ProbeCollector) IncProbeCounter added in v0.16.0

func (c *ProbeCollector) IncProbeCounter(name, namespace, hostname string)

IncProbeCounter increments the counter for a specific probe

type RemoteClusterCollector added in v0.15.0

type RemoteClusterCollector struct {
	Provider *kubeconfigprovider.Provider
	// contains filtered or unexported fields
}

func NewRemoteClusterCollector added in v0.16.0

func NewRemoteClusterCollector(provider *kubeconfigprovider.Provider) *RemoteClusterCollector

func (*RemoteClusterCollector) Collect added in v0.15.0

func (c *RemoteClusterCollector) Collect(ch chan<- prometheus.Metric)

func (*RemoteClusterCollector) Describe added in v0.15.0

func (c *RemoteClusterCollector) Describe(ch chan<- *prometheus.Desc)

func (*RemoteClusterCollector) IncRemoteRecordReconcile added in v0.16.0

func (c *RemoteClusterCollector) IncRemoteRecordReconcile(cluster, namespace, name string)

IncRemoteRecordReconcile increments the counter for a specific cluster/namespace/name combination

func (*RemoteClusterCollector) RemoveRemoteRecordReconcile added in v0.16.0

func (c *RemoteClusterCollector) RemoveRemoteRecordReconcile(cluster, namespace, name string)

RemoveRemoteRecordReconcile removes the counter for a specific cluster/namespace/name combination

func (*RemoteClusterCollector) SetRemoteRecordsCount added in v0.16.0

func (c *RemoteClusterCollector) SetRemoteRecordsCount(cluster string, count float64)

SetRemoteRecordsCount sets the count of delegated remote records for a specific cluster

Jump to

Keyboard shortcuts

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