What is the table that logs metrics in Azure - azure

Azure VM's shows below charts in the overview tab. I would like to know the source table for these metrics so that I can customize and query them.

You should get them in Azure Monitor. Take a look on the Virtual Machine metrics:
https://learn.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported
https://learn.microsoft.com/en-us/azure/azure-monitor/insights/vminsights-performance

I think you are looking for a log-analytics , which will have all the metrics of the VM in the table format, here you can find how to find queries to get cutomized results for the particular VM

I believe this is what you need, you can view can data using log analytics.
https://learn.microsoft.com/en-us/azure/azure-monitor/learn/quick-collect-azurevm#view-data-collected

As mentioned above I believe Log Analytics is the source...specifically query the AzureDiagnostic Table here is a query to get you started:
AzureDiagnostics
| where ResourceProvider =="Microsoft.Compute/virtualMachines"

Related

How can I find which Log analytics table is supported by which resource/solution?

How can I find which Log analytics table is supported by which resource/solution? I need to work on log tables and need to find out which I need to support depending on solution or resources.
I am not finding any consolidated information on same. If I try to check a table the I can see supported solution or resources for that particular table.
You can find the Supported Resources and solutions in the Log Analytics workspace by following the below steps:-
I agree with Jul_DW AFAIK you can find the consolidated list of all the Log analytics tables in this MS document as there’s no other document with the list of logs and check the same for the category type in the left Filter by title:-
Azure Monitor table reference index by resource type | Microsoft Learn
You can also make use of Rest API to call the Log analytics workspace and List all the tables in the LA workspace with its resources like below:-
GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables?api-version=2021-12-01-preview
Output:-
List Data sources by filtering specific table:-
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/OIAutoRest5123/providers/Microsoft.OperationalInsights/workspaces/AzTest9724/dataSources?$filter=kind='WindowsEvent'&api-version=2020-08-01
References:-
Tables - List By Workspace - REST API (Azure Log Analytics) | Microsoft Learn
Data Sources - List By Workspace - REST API (Azure Log Analytics) | Microsoft Learn

Getting peak load for Azure MySQL service from Azure Log Analytics

I am trying to find peak CPU usage and peak memory usage for Azure MySQL service using Log Analytics. Any help is appreciated.
I have figured this out and have added this in my dashboard using the Azure Metrics component and customizing the presentation to table view instead of graph view. I don't have visibility to the actual query that generates this data but I am able to access the data in text/table form.

Showing grahps in Log Analytics query

In application insights we can show charts:
I would like to show a graph in Log Analytics too is that possible? I dont see charts in there?
Please select a chart from Visualization drop-down if you run the query in workbooks:
Another way is that run the query directly in the Logs blade of azure log analytics service.

Is it possible to query Azure data warehouse within log analytics

I have a scenario where I would like to query Azure Data warehouse tables within the Log Analytics workspace and using those records I need to create a result set and prepare a chart.
I do see some objects in log analytics workspace like a database, table but not sure what is the purpose and are these objects specific to a resource or generic and how to use them I couldn't get documentation for these objects can somebody guide me on this.
Unfortunately, you cannot use Azure Log Analytics to query Azure SQL Data Warehouse.
Use Azure Data Studio to connect and query data in Azure SQL data warehouse.
Recommended tools for querying data in Azure SQL Data Warehouse.
Azure Log Analytics is used to write, execute, and manage Azure Monitor log queries in the Azure portal. You can use Log Analytics queries to search for terms, identify trends, analyze patterns, and provide many other insights from your data.
For more information about log queries, see Overview of log queries in Azure Monitor.
For a detailed tutorial on writing log queries, see Get started with log queries in Azure Monitor.

How to Fetch only Azure Computers in OMS Log Analytics search query

I am trying to fetch underutilized computers in Azure. I am trying to use OMS Log Analytics query for this.
The query returns the Azure VMs and on-premise servers as well (fetched via SCOM or direct agent). I need to filter the result to get only the Azure VMs. What is the best way (or query) to fetch only Azure computers in OMS Log Analytics Search Query?
I know that I need to create a Computer Group and then use that Computer Group in my Query as shown below.
Type=Perf ObjectName=Processor CounterName="% Processor Time" Computer IN $ComputerGroups[AzureComputers]
I need to know what Query should I use to create the Computer Group "AzureComputers" which is used in the above query.This computer group will contain only computers which are present in Azure i.e. which are Azure VMs.
This feature is now provided out of the box in OMS Log Analytics. Finding Azure computers is as easy as running below query in Log Analytics:
 
Heartbeat | where ComputerEnvironment == "Azure" and notempty(ResourceId) | distinct Computer

Resources