metrics

package
v1.14.0-snapshot.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LostEvents = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: api.DefaultPrometheusNamespace,
		Name:      "lost_events_total",
		Help:      "Number of lost events",
	}, []string{labelSource})
)

Additional metrics - they're not counting flows, so are not served via Hubble metrics API, but belong to the same Prometheus namespace.

Functions

func EnableMetrics

func EnableMetrics(log logrus.FieldLogger, metricsServer string, m []string, grpcMetrics *grpc_prometheus.ServerMetrics, enableOpenMetrics bool) error

EnableMetrics starts the metrics server with a given list of metrics. This is the function Cilium uses to configure Hubble metrics in embedded mode.

func ProcessFlow

func ProcessFlow(ctx context.Context, flow *pb.Flow) error

ProcessFlow processes a flow and updates metrics

func ProcessPodDeletion

func ProcessPodDeletion(pod *slim_corev1.Pod) error

Types

type PodDeletionHandler

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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