Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfiguration ¶
type AgentConfiguration struct {
// Cluster information
ClusterName string
ClusterNamespace string
// Resource names
ConfigMapName string
SecretName string
// Data to persist
ConfigMapData map[string]string
SecretData map[string]string // Environment variables for the secret
// ExtraSecretObjects is optional pre-rendered YAML content to include as Helm
// extraObjects in the secret values (e.g. KEDA ClusterTriggerAuthentication).
ExtraSecretObjects string
// Labels to apply to resources
Labels map[string]string
}
AgentConfiguration represents the configuration for an Alloy agent deployment
type ConfigurationRepository ¶
type ConfigurationRepository interface {
// Save creates or updates both ConfigMap and Secret for an agent
Save(ctx context.Context, config *AgentConfiguration) error
// Delete removes both ConfigMap and Secret for an agent
Delete(ctx context.Context, clusterName, clusterNamespace, configMapName, secretName string) error
}
ConfigurationRepository manages persistence of agent configurations
func NewConfigurationRepository ¶
func NewConfigurationRepository(client client.Client) ConfigurationRepository
NewConfigurationRepository creates a new Kubernetes-based configuration repository
Directories
¶
| Path | Synopsis |
|---|---|
|
Package collectors provides implementations of various observability collectors for workload clusters.
|
Package collectors provides implementations of various observability collectors for workload clusters. |
|
events
Package events provides the events collector implementation for observability.
|
Package events provides the events collector implementation for observability. |
|
logs
Package logs provides the logs collector implementation for observability.
|
Package logs provides the logs collector implementation for observability. |
|
metrics
Package metrics provides the metrics agent configuration and management.
|
Package metrics provides the metrics agent configuration and management. |
|
Package common provides shared utilities and components for Alloy agent configuration.
|
Package common provides shared utilities and components for Alloy agent configuration. |
Click to show internal directories.
Click to hide internal directories.