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

add metrics for connect/disconnect events #461

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Conversation

iansuvak
Copy link
Contributor

Why this should be merged

Instead of moving Connected/Disconnected log events back to info level this collects metrics on the number of connect and disconnect events that occur. As of now, the applications don't initiate any disconnects so alerts can be created to monitor for excessive disconnects initiated by network peers.

Also fixed the typo in the app_request_network_metrics.go filename

How this works

I re-used recently added AppRequestNetworkMetrics struct since these are fundamentally still related to the AppRequestNetwork.

@iansuvak iansuvak force-pushed the connection_metrics branch from 2a92347 to 7935089 Compare August 27, 2024 11:49
@iansuvak iansuvak self-assigned this Aug 27, 2024
geoff-vball
geoff-vball previously approved these changes Aug 27, 2024
cam-schultz
cam-schultz previously approved these changes Aug 27, 2024
@cam-schultz cam-schultz dismissed their stale review August 27, 2024 14:06

one more look

Base automatically changed from tracked_subnets_fix to main August 27, 2024 14:08
@iansuvak iansuvak dismissed geoff-vball’s stale review August 27, 2024 14:08

The base branch was changed.

@iansuvak iansuvak requested a review from geoff-vball August 27, 2024 14:30
Copy link
Contributor

@bernard-avalabs bernard-avalabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iansuvak iansuvak merged commit df148f8 into main Aug 27, 2024
7 checks passed
@iansuvak iansuvak deleted the connection_metrics branch August 27, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants