mirror of
https://github.com/hanzoai/o11y.git
synced 2026-10-15 12:58:33 +00:00
Full rebrand of the SigNoz observability platform: - Go module: github.com/SigNoz/signoz → github.com/hanzoai/o11y - Frontend: @signozhq/* → @hanzo/o11y-*, posthog-js → @hanzo/insights - Docker: signoz/* → ghcr.io/hanzoai/o11y* - ClickHouse → Hanzo Datastore (hanzoai/datastore) - Env vars: SIGNOZ_* → HANZO_* - DB tables: signoz_* → o11y_* - All branding, URLs, docs updated - 2172 files changed
30 lines
829 B
Go
30 lines
829 B
Go
package agentConf
|
|
|
|
import (
|
|
"github.com/hanzoai/o11y/pkg/types/opamptypes"
|
|
"github.com/hanzoai/o11y/pkg/valuer"
|
|
)
|
|
|
|
// Interface for features implemented via agent config.
|
|
// Eg: ingestion side signal pre-processing features like log processing pipelines etc
|
|
type AgentFeature interface {
|
|
// Must be unique across `AgentFeature`s
|
|
AgentFeatureType() AgentFeatureType
|
|
|
|
// Recommend config for an agent based on its `currentConfYaml` and
|
|
// `configVersion` for the feature's settings
|
|
RecommendAgentConfig(
|
|
orgId valuer.UUID,
|
|
currentConfYaml []byte,
|
|
configVersion *opamptypes.AgentConfigVersion,
|
|
) (
|
|
recommendedConfYaml []byte,
|
|
|
|
// stored as agent_config_version.config in current agentConf model
|
|
// TODO(Raj): maybe refactor agentConf further and clean this up
|
|
serializedSettingsUsed string,
|
|
|
|
err error,
|
|
)
|
|
}
|