AzureMetrics Table vs Metrics in Azure Dasboard - azure

I am working on Azure Monitor Dashboards.
I need to check the Health Status of my App Service.
If i run use option Metrics (2nd Image) add Health Status metrics and create chart
vs
If i run query on AzureMetrics Table will both return same result? I mean HOW both options are different from each other?

Both use the same source. The difference is that using the "Metrics" blade you can create charts withouth having to write queries using Kusto and anyone with basic knowledge can quickly create charts.
When using the "Logs" blade you have to write a query using Kusto to get the desired results and format the chart manually but you have more control in what and how data is displayed.

If i run query on AzureMetrics Table will both return same result? I
mean HOW both options are different from each other?
The difference between logs and metrics is,
Metrics reveal a service or application's tendencies and proclivities,
while logs focus on specific events. The goal of logs is to save as
much information—mostly technical informations—as possible about a
single event. Log data can be used to investigate occurrences and
assist with root-cause analysis of problems or defects, as well as an
increasing number of other applications.
For more information please refer the below links:-
MSFT TECHCOMMUNITY|Difference between Log Analytics and Monitor
Blogs|Azure Monitor and Azure Log Analytics & Logs or Metrics.

Related

Azure Application Insights | Performance filter configuration in Grafana

I'm trying to achieve the following : I want the Performance (page view urlhost) under Applications Insights to be displayed in Grafana. I connected Azure to Grafana and can pull through metrics but I want to filter on certain data, below is a screenshot from where I want the data.
I did add variables under the datasources and followed this link to add the variables : https://grafana.com/docs/grafana/latest/datasources/azuremonitor/
Any help or input would be appreciated.
Thanks.
I managed to resolve this issue on my own.
I've gone through the metrics of the connected Azure Monitor service and got the specific metric I was looking for and then just set it to the metric I wanted.
Due to additional details in the screenshot I won't be able to share it but feel free to ask me for additional details.
Thanks.

Is there a script to create azure custom alerts format and any log analytics query to get azure VM status

I have below two questions can someone help on them.
1.Is there a script or a way to create custom alert format for azure alerts?
2.Is there a way to pin all the azure VM status to dashboard?
Regarding #1, the feature to customize or configure alert email format is currently not supported. If interested, I suggest you to raise your feedback / feature request here in UserVoice / feedback forum. Responsible product / feature team would triage / start checking feasibility and would prioritize the feedback.
Regarding #2, If 'status' is meant as 'PowerState' (i.e., status of VM whether it is running, deallocated, etc.) or if it's meant as 'StatusCode' (i.e., ok, etc.) or if it's meant as 'ProvisioningState' (i.e., succeeded, etc.) then I don't think we have straight-forward way for it so that we can ingest that particular data directly to dashboard but said that, you may just leverage 'Heartbeat' Log Analytics Kusto table at first place and create a custom view as dashboard using view designer but as views in Azure Monitor are being phased out and replaced with workbooks so I suggest leveraging these workbooks now.
If not, you may leverage a new feature called as Azure Monitor for VMs which basically helps to analyze the performance and health of your Windows and Linux VMs, and monitor their processes and dependencies on other resources and external processes. Here again, you can create interactive reports Azure Monitor for VMs with VM insights workbooks.
Hope these inputs helps!

Container Insights - Containerstats Dashboard

is it possible to show the Podstats of AKS on a shared Dashboard?
Why not, you would just need to pull that data from the OMS and create a custom dashboard from those queries.
if you click on the individual entry it will navigate to the OMS instance and show you the query needed to get that data.
Danny, Unfortunately there is no simple "click to pin this chart" functionality available currently in Container Insights (more modern name for that thing is Azure Monitor for Containers). We're looking to add it within a couple of months.
The chart does a query to Log Analytics store and goes into a bit of custom processing on the data received to render the chart. You can go to your cluster, "Metrics" on the menu on the left and chart the same thing there. You can pin from the metrics. Let me know if you need help with that I can provide more detailed instructions...

Allow customer to only see logging information

We run a software application on azure for one of our customers. The customer want to see the performance of the systems. This consist of two parts. One is the metric information of the servers and they also want to see some information I want to provide by custom logging.
My plan is to give the customer access to the portal and only allow him access to the metric information and the custom tables.
It seems to me that by assigning a role to the customer I should be able to block all the other possibilities.
Does someone can me tell which actions I have to allow/forbid to achieve this? Or were I can find the information for this?
Solution #1
Instead of giving Read access to the virtual machine which may breaks security policy, I'd recommend to go with Azure Log Analytics (ref: https://learn.microsoft.com/en-us/azure/log-analytics/log-analytics-overview
) workspace. That said, you will need to create a workspace which collects and stores server metrics (ref: https://learn.microsoft.com/en-us/azure/log-analytics/log-analytics-quick-collect-windows-computer) and other custom metrics.
Your customer will be given access to the workspace only which he can see all metrics in a dashboard. If there is a need for log filtering, you can use Log Analytics query language (ref: https://learn.microsoft.com/en-us/azure/log-analytics/log-analytics-log-search-transition)
Log Analytics is a paid service. You are given free up to 10 workspaces per subscription. The workspace is considered an Azure resource so the limit follows by subscription limit, which means you can create up to 800 workspaces per a resource group. A subscription can allow 800 * 800 (for reference if you would like to do capacity planning for your workspace-based solution). For Log Analytics pricing, read here (https://azure.microsoft.com/en-us/pricing/details/log-analytics/).
Log Analytics is a good choice as its value proportion is to offer your customer intuitive dashboard to monitor their virtual machine performance, and to offer Near Real Time monitoring. And this solution is a cloud native compatibility.
There is a management solution which offers a bundle of VM capacity and performance monitoring which you can try now https://learn.microsoft.com/en-us/azure/log-analytics/log-analytics-capacity
Solution #2
Log Analytics might not be your choice because it might add more Azure service and operational cost. If you need a cheaper cost, you would need to collect your virtual machine by Performance Counter which is a built-in feature in Windows OS. With Performance Counter you can export to Excel file, or visualize into Power BI or some custom chart.
Other Solutions
You can utilize Azure Monitor and API to get data, For example, this API https://learn.microsoft.com/en-us/rest/api/monitor/metricdefinitions/list. You would certainly need to visualize or format in some intuitive way to satisfy your customer. It can be a custom front-end web, or Power BI or even Excel with chart.
You can just query to Azure Blob Storage and use Stream Analytics combining with Power BI to visualize your data (https://thuansoldier.net/?p=7187).
There is not a single solution. This really depends on your existing resource capacity, financial stuff or so on.

Explore long-term data with Azure Application Insights and PowerBi

I use continuous export to pull in my Application Insights data into Power Bi. However, all of the data seems to be either 7-day or 30-day - how would I be able to view a chart with a longer-term timeframe (aka users over the last year)?
Update
Here is what I see in Power Bi:
From the screenshot, it looks like you're not using Continuous Export for this, but instead are using the Application Insights Content Pack for Power BI. The content pack has predefined views which us what you circled in your screenshot.
You can easily create your own viewed using the almost-ready-to-release Application Insights REST API (tracked with this UserVoice suggestion).
If you want to try this with the API, please send me a note at dalek#microsoft.com and I'll set you up. In the API documentation I show step-by-step how you can create charts from metric data in Power BI.
Thanks
Dale Koetke

Resources