MCPcopy
hub / github.com/cilium/cilium / DynamicFlowProcessor

Struct DynamicFlowProcessor

pkg/hubble/metrics/dynamic_flow_processor.go:24–31  ·  view source on GitHub ↗

DynamicFlowProcessor represents instance of hubble exporter with dynamic configuration reload.

Source from the content-addressed store, hash-verified

22// DynamicFlowProcessor represents instance of hubble exporter with dynamic
23// configuration reload.
24type DynamicFlowProcessor struct {
25 logger *slog.Logger
26 watcher *metricConfigWatcher
27 // Protects against deregistering metric handlers while ProcessFlow is executing, or concurrent config reloads.
28 mutex lock.RWMutex
29 Metrics []api.NamedHandler
30 registry *prometheus.Registry
31}
32
33// ProcessFlow implements FlowProcessor.
34func (p *DynamicFlowProcessor) ProcessFlow(ctx context.Context, flow *flowpb.Flow) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected