mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-15 09:41:50 +08:00

* feat: add interface for opamp.AgentConfigProvider * feat: add iface and plumbing for generating recommended conf in opamp/agent * feat: get opamp server config provider tests started * chore: add test scenario for agent connection without a config recommendation * chore: add test scenario for agent connection with a config recommendation * chore: add test for validating config deployment status gets reported * chore: add test for rolling out latest config recommendations when config changes * chore: wrap up opamp server lifecycle tests * chore: some tests cleanup * chore: get all tests passing * chore: update opamp server init logic in ee query service * chore: some cleanup * chore: some final cleanup
21 lines
643 B
Go
21 lines
643 B
Go
package model
|
|
|
|
// Interface for source of otel collector config recommendations.
|
|
type AgentConfigProvider interface {
|
|
// Generate recommended config for an agent based on its `currentConfYaml`
|
|
// and current state of user facing settings for agent based features.
|
|
RecommendAgentConfig(currentConfYaml []byte) (
|
|
recommendedConfYaml []byte,
|
|
// Opaque id of the recommended config, used for reporting deployment status updates
|
|
configId string,
|
|
err error,
|
|
)
|
|
|
|
// Report deployment status for config recommendations generated by RecommendAgentConfig
|
|
ReportConfigDeploymentStatus(
|
|
agentId string,
|
|
configId string,
|
|
err error,
|
|
)
|
|
}
|