8000 Resolve "Refactor the process of initializing collector" by Apdul0329 · Pull Request #57 · alpacanetworks/alpamon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Resolve "Refactor the process of initializing collector" #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 22, 2025

Conversation

Apdul0329
Copy link
Contributor

As mentioned in #56, refactor collector initialization process.
Additionally, Modify Transporter to not retry metric transmissions when 400 error occurs.

Closes #56

Refactor alpamon to prevent termination
when collector initialization fails.
Add CollectorRestartChan to WebsocketClient
to receive collector restart commands.
Implement RestartCollector() to send a signal to
CollectorRestartChan upon receiving collector
restart command.
Add logic to restart the collector when
a restart request signal is received on
wsClient.CollectorRestartChan.
To implement this, add for-select block.
Add restartcoll command case to trigger
collector restarts.
Modify Transporter to not retry metric
transmissions when 400 error occurs.
@Apdul0329 Apdul0329 requested a review from royroyee April 18, 2025 10:43
@Apdul0329 Apdul0329 linked an issue Apr 18, 2025 that may be closed by this pull request
@Apdul0329 Apdul0329 marked this pull request as draft April 20, 2025 11:02
Merge the 'restartcoll' command into the 'restart'
command, considering the future addition of
other targets besides the collector.
@Apdul0329 Apdul0329 marked this pull request as ready for review April 21, 2025 06:00
@royroyee royroyee merged commit 490f745 into main Apr 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor the process of initializing collector
2 participants
0