Skip to content
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

check if monitor accepts endpoints before setting host/port #1107

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

mstumpfx
Copy link

Only select smart-agent monitors can be created via endpoints. This is
defined as a struct tag on the monitor configs "acceptsEndpoints". In
the case where we attempt to set Host/Port on a monitor that has it's
"acceptsEndpoints" value set to false, an error occurs and we do not
create the monitor.

This change would create the monitor but avoid setting the
Host/Port fields. This allows the receiver creator to
create any smart-agent monitor with receiver creator.

@mstumpfx mstumpfx force-pushed the sa-monitor-creation branch 3 times, most recently from 47f022c to 1c1ec81 Compare January 11, 2022 19:36
@mstumpfx mstumpfx marked this pull request as ready for review January 11, 2022 21:01
@mstumpfx mstumpfx requested review from a team as code owners January 11, 2022 21:01
CHANGELOG.md Outdated Show resolved Hide resolved
@mstumpfx mstumpfx force-pushed the sa-monitor-creation branch 5 times, most recently from 6e0ad30 to 02aea8c Compare January 19, 2022 15:13
Only select smart-agent monitors can be created via endpoints. This is
defined as a struct tag on the monitor configs "acceptsEndpoints". In
the case where we attempt to set Host/Port on a monitor that has it's
"acceptsEndpoints" value set to false, an error occurs and we do not
create the monitor.

This change would create the monitor but avoid setting the
Host/Port fields. This allows the receiver creator to
create any smart-agent monitor.
@mstumpfx mstumpfx merged commit 3339129 into main Jan 19, 2022
@delete-merged-branch delete-merged-branch bot deleted the sa-monitor-creation branch January 19, 2022 18:09
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.

2 participants