-
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]: Configure the
ppid
option in the opamp exten…
…sion (#32875) **Description:** <Describe what has changed.> * Configures the PPID of the opamp extension in the supervisor. This allows the collector to detect if the supervisor exits and shut itself down. **Link to tracking Issue:** Closes #32189 **Testing:** <Describe what testing was performed and which tests were added.> * Manually tested by starting the supervisor, then kill -9'ing the supervisor. The collector previously would have still been running, but now shuts itself down. Doing this you can also see the following log: ``` 2024-05-06T14:52:31.010-0400 error [email protected]/collector.go:278 Asynchronous error received, terminating process {"error": "collector was orphaned, process with pid 38908 does not exist"} ``` **Documentation:** <Describe the documentation added.> Added `orphan_detection_interval` to the spec as a configurable option --------- Co-authored-by: Tiffany Hrabusa <[email protected]> Co-authored-by: Andrzej Stencel <[email protected]>
- Loading branch information
1 parent
d78d7bb
commit e783923
Showing
5 changed files
with
31 additions
and
4 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: bug_fix | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: cmd/opampsupervisor | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: The OpAMP supervisor now configures the `ppid` parameter of the opamp extension, which allows the collector to shut down if the supervisor is no longer running. | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
issues: [32189] |
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