Retrieve Metrics and App Insights Data

user20201 326 Reputation points
2021-10-18T06:35:10.157+00:00

Hello All-

We are using function apps and we have setup application insights for those apps. How can we programmatically retrieve the metrics and application insights data of those function apps? Are there any graph API we can use or other ways you can recommend?

Thank you!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,805 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,609 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 36,976 Reputation points
    2021-10-19T09:02:41.02+00:00

    Hi, dear @user20201

    The graph api does not support the retrieval of metrics and App Insights data. To get data, you can use the link that stan mentioned, or the latest REST API version.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 21,256 Reputation points MVP
    2021-10-19T08:48:15.97+00:00

    Hi,
    Please check Application Insights API for querying data.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments