open-telemetry / opamp-spec

OpAMP Specification
Apache License 2.0
108 stars 35 forks source link

Proposal for Add-On Configuration Support in OSS OpAMP Specification #202

Open pavankrish123 opened 1 month ago

pavankrish123 commented 1 month ago

Description: The current OpAMP specification provides comprehensive guidelines on handling packages and their downloads. However, it lacks a clear stance on how the packages/add-ons themselves should be configured. This feature request proposes the inclusion of a standardized approach for add-on configuration within the specification.

Rationale:

Counterarguments

Proposal/Ask

  1. Add-On Configuration Schema: Define a standardized schema for add-on configurations. This schema should be flexible enough to accommodate various types of add-ons while ensuring consistency.
  2. Configuration Management Interface: Introduce an interface within the specification that allows for the independent management of add-on configurations. This interface should support operations such as retrieval, update, and validation of add-on configurations.
  3. Lifecycle Management Guidelines: Provide guidelines on how the lifecycle of add-ons should be managed in relation to the main agent. This includes installation, updates, and decommissioning of add-ons.

Incorporating a standardized approach for add-on configuration within the OpAMP specification will enhance the flexibility, modularity, and overall manageability of the system.

tigrannajaryan commented 1 month ago

What would this look like in practice in its simplest form? Will we add "config" fields to PackageAvailable message? Do we also need to allow agents to report effective config for packages via PackageStatus, mirroring the functionality we have in AgentRemoteConfig/EffectiveConfig for main agent config?

tigrannajaryan commented 1 month ago

Add-On Configuration Schema: Define a standardized schema for add-on configurations. This schema should be flexible enough to accommodate various types of add-ons while ensuring consistency.

Can you expand on this?

Configuration Management Interface: Introduce an interface within the specification that allows for the independent management of add-on configurations. This interface should support operations such as retrieval, update, and validation of add-on configurations.

Same here, please provide more details.

Lifecycle Management Guidelines: Provide guidelines on how the lifecycle of add-ons should be managed in relation to the main agent. This includes installation, updates, and decommissioning of add-ons.

What are the parts that are missing? We have certain elements on this (e.g. in PackageStatus).