-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cmd/opampsupervisor]: Allow configuring agent description (#32819)
**Description:** <Describe what has changed.> * Add options to the configuration that allows configuring the agent description **Link to tracking Issue:** Closes #32824 **Testing:** e2e test, unit tests for validation **Documentation:** * Updated spec with configuration parameters --------- Co-authored-by: Tigran Najaryan <[email protected]>
- Loading branch information
1 parent
78bd957
commit 4d5fbfb
Showing
6 changed files
with
189 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: opampsupervisor | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Adds the ability to configure the agent description | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
issues: [32824] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
cmd/opampsupervisor/testdata/supervisor/supervisor_agent_description.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
server: | ||
endpoint: ws://{{.url}}/v1/opamp | ||
tls: | ||
insecure: true | ||
|
||
capabilities: | ||
reports_effective_config: true | ||
reports_own_metrics: true | ||
reports_health: true | ||
accepts_remote_config: true | ||
reports_remote_config: true | ||
accepts_restart_command: true | ||
|
||
agent: | ||
executable: ../../bin/otelcontribcol_{{.goos}}_{{.goarch}}{{.extension}} | ||
description: | ||
identifying_attributes: | ||
client.id: "my-client-id" | ||
non_identifying_attributes: | ||
env: "prod" |