An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
I didn't find a way to accomplish it through SDK but I found an API where you can send queries and retrieve data.
https://dev.applicationinsights.io/reference/get-query
With the API explorer, you can build your query, is so useful
https://dev.applicationinsights.io/apiexplorer/metrics
Regards