question

SamFissure-4957 avatar image
0 Votes"
SamFissure-4957 asked SamFissure-4957 commented

Is there documentation on which specific API calls return historical data?

Hi, we are testing out the Azure Monitoring API and cannot find adequate documentation on what can be returned from an API call.

We specifically would like historical data, stats on average performance over a day's use, for instance, or whether the system was under DDoS from 12AM-8AM, among other things

We need specific returns from a large variety of calls.

Any information on returns from these calls with respect to historical data is greatly appreciated.

azure-monitor
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
You have not specified which exact API are you using? Also, you have not specified the resource type or the data source for the data. To give you some guidance. Every resource has metrics that are available for free for 90 days via Azure Monitor. Each resource type has its own metrics. Depending on what resources/services you use you will get different metrics for the resources. The other available logs for free for 90 days are Activity logs. Those are operations done on management plane of Azure for create/update/delete operations. For other logsyou may require setting up additional resources like Log Analytics in order to use them.


1 Vote 1 ·

Apologies for that. The metrics we are looking to monitor are a bit over 100 or so of those which can be found here:
https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/metrics-supported

I went over the documentation in some more detail and it still seems somewhat unclear as to whether those have long-term data or not. It is clear that at least some of it does provide this.
Basically a timestamp and a value is what we need returned. Other data may be nice, but it's really performance data over time we need.

The resource is a (group of) server(s) and the application(s) running on it. It's a wide variety of information needed.

0 Votes 0 ·

1 Answer

stan avatar image
0 Votes"
stan answered SamFissure-4957 commented

Hi,
Based on your clarification if you query the metrics API the data there is available for the last 93 days. If you want you can export those metrics to Storage Account, to Event Hub (and from there eventually to some other 3rd party service) or to Log Analytics. Log Analytics allows for easy querying the data and storing it for 2 years When you send the data to Log Analytics the major limitation is that the dimensions are missing. I am not sure what is your definition for long term but these options either used together or separately should cover all your scenarios. Timestamp and value is available via Metrics API and of course when you export the metrics to one of those services. Almost all resources supports some metrics and almost all of those metrics can be exported to one of those services. The metrics API can be used for any of the metrics available for the different Azure services.

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


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks! This is a big help!

0 Votes 0 ·