简体   繁体   English

嵌入/ REST API用于天蓝色分析

[英]Embed/REST API for azure analytics

Is there an API available to pull telemetry/insights data for websites from the azure portal, so I can display that data on my 3rd party site? 是否有可用的API从azure门户提取网站的遥测/洞察数据,所以我可以在我的第三方网站上显示该数据? I'm looking for something similar to Google Analytics embed API. 我正在寻找类似于Google Analytics(分析)嵌入API的工具。

I do not think there is a specific API for Azure Web Apps analytics (the new name, as I found out today). 我认为没有用于Azure Web Apps分析的特定API(我今天发现的新名称)。 However, you can configure your web site to log to Azure storage - either table storage or blob storage, and then use the regular storage REST APIs (or use the storage client classes from one of the Azure SDKs). 但是,您可以将网站配置为登录到Azure存储(表存储或Blob存储),然后使用常规存储REST API(或使用其中一个Azure SDK的存储客户端类)。 You can do this configuration when you enable logging in the Azure portal. 在启用Azure门户中的登录时,可以执行此配置。 The choices for log destination are File (ie the local filesystem - these can then be pulled by FTP) or Table or Blob (these can then be accessed by the storage REST API). 日志目标的选择是“文件”(即本地文件系统-然后可以通过FTP拉出这些文件)或“表”或“ Blob”(然后可以通过存储REST API进行访问)。

It is summarised here: 总结如下:

http://azure.microsoft.com/en-us/documentation/articles/web-sites-enable-diagnostic-log/ http://azure.microsoft.com/zh-CN/documentation/articles/web-sites-enable-diagnostic-log/

Note: In that link they describe how you can stream logs for real time log viewing (using PowerShell or the Azure command line tools). 注意:在该链接中,它们描述了如何流式传输日志以进行实时日志查看(使用PowerShell或Azure命令行工具)。 I think this is intended for debugging purposes rather than embedding in an application, but it might help you... 我认为这是出于调试目的,而不是嵌入到应用程序中,但这可能对您有帮助...

An alternative approach (disclaimer: I never tried this) is to integrate NewRelic into your application and then use their REST API to extract their monitoring information: 另一种方法(免责声明:我从未尝试过)是将NewRelic集成到您的应用程序中,然后使用其REST API提取其监视信息:

https://docs.newrelic.com/docs/apm/apis/requirements/extracting-metric-data https://docs.newrelic.com/docs/apm/apis/requirements/extracting-metric-data

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

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