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 proxy metric representing failed connection attempts #136

Merged
merged 2 commits into from
Nov 29, 2024
Merged

Conversation

lukasz-antoniak
Copy link
Contributor

@lukasz-antoniak lukasz-antoniak commented Nov 26, 2024

Fixes #135.

@lukasz-antoniak lukasz-antoniak marked this pull request as ready for review November 26, 2024 10:21
@@ -196,15 +196,20 @@ func (cc *ClusterConnector) run() {
func openConnectionToCluster(connInfo *ClusterConnectionInfo, context context.Context, connectorType ClusterConnectorType, nodeMetrics *metrics.NodeMetrics) (net.Conn, context.Context, error) {
clusterType := connInfo.connConfig.GetClusterType()
log.Infof("[%s] Opening request connection to %v (%v).", connectorType, clusterType, connInfo.endpoint.GetEndpointIdentifier())
nodeMetricsInstance, err := GetNodeMetricsByClusterConnector(nodeMetrics, connectorType)
if err != nil {
log.Errorf("Failed to track open connection metrics for endpoint %v: %v.", connInfo.endpoint.GetEndpointIdentifier(), err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should probably be a warning

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was an error, so let us leave it like this for time being.

@joao-r-reis
Copy link
Collaborator

Need to update the grafana dashboard too (I think the file is on the automation repo IIRC)

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.

Add metric representing failed connection attempts
2 participants