shared

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	NamespaceSelector map[string]string `mapstructure:"namespaceSelector"` // Label selector for namespaces to watch
	MetricsPort       string            `mapstructure:"metricsPort"`       // Port for Prometheus metrics endpoint
	Verbosity         int               `mapstructure:"verbosity"`         // Log verbosity level (0-2)
	ExtraLabels       []ExtraLabel      `mapstructure:"extraLabels"`       // Additional labels to extract from workloads
}

type ExtraLabel

type ExtraLabel struct {
	Type                string `mapstructure:"type"`                // "annotation" or "label" - where to extract from
	Key                 string `mapstructure:"key"`                 // The annotation/label key to extract (e.g., "sentinel.io/owner")
	TimeseriesLabelName string `mapstructure:"timeseriesLabelName"` // The name to use in the Prometheus metric (e.g., "owner")
}

ExtraLabel defines how to extract a label/annotation from a workload and expose it as a Prometheus label

Jump to

Keyboard shortcuts

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