简体   繁体   English

如何监控 Azure Cosmos DB 当前打开的连接?

[英]How can I monitor the currently open connections of an Azure Cosmos DB?

I am debugging a problem with an Azure Cosmos DB and would like to see the currently open connections to the DB.我正在调试 Azure Cosmos DB 的问题,并希望查看当前打开的与 DB 的连接。 Is there a metric for this that I could search for in the Azure Monitor or where and how can I find this status information?是否有我可以在 Azure 监视器中搜索的指标,或者我在哪里以及如何找到此状态信息?

From the comments, you are using Azure App Service.从评论中,您正在使用 Azure 应用服务。 Azure App Service has a way to monitor established connections (and even those in TIME_WAIT). Azure 应用服务有一种方法可以监控已建立的连接(甚至是 TIME_WAIT 中的连接)。

Azure Monitor has the Connections metrics: https://docs.microsoft.com/en-us/Azure/app-service/web-sites-monitor#understand-metrics Azure 监视器具有Connections指标: https://docs.microsoft.com/en-us/Azure/app-service/web-sites-monitor#understand-metrics

Also, App Service has the Diagnostics Tool that includes Connections: https://azure.github.io/AppService/2018/03/01/Deep-Dive-into-TCP-Connections-in-App-Service-Diagnostics.html Also, App Service has the Diagnostics Tool that includes Connections: https://azure.github.io/AppService/2018/03/01/Deep-Dive-into-TCP-Connections-in-App-Service-Diagnostics.html

Your application runs in an App Service which is actually in an App Service Plan , that's the machine that is maintaining the connections.您的应用程序在应用服务中运行,该应用服务实际上在应用服务计划中,即维护连接的机器。 If you have many applications sharing the same App Service Plan, you'd see the connection information from all.如果您有许多应用程序共享同一个应用服务计划,您会看到所有应用程序的连接信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM