Kaganapan
Mar 17, 9 PM - Mar 21, 10 AM
Sumali sa serye ng meetup upang bumuo ng mga scalable AI solusyon batay sa mga kaso ng paggamit ng tunay na mundo sa mga kapwa developer at eksperto.
Magparehistro naHindi na suportado ang browser na ito.
Mag-upgrade sa Microsoft Edge para samantalahin ang mga pinakabagong tampok, update sa seguridad, at teknikal na suporta.
Container Insights currently uses data from Log Analytics to power the visualizations in the Azure portal. However, with the release of managed Prometheus, this new format of metrics collection is cheaper and more efficient. Container Insights now offers the ability to visualize using only managed Prometheus data. This article helps you with the setup to start using managed Prometheus as your primary Container Insights visualization tool.
Note
This feature is currently in public preview. For additional information, please read the Supplemental Terms of Use for Microsoft Azure Previews.
To view your Container Insights data using Prometheus, ensure the following steps are complete.
Reader
permission or higher on the associated Azure Monitor workspacemonitor.azure.com
trafficBecause Azure Monitor supports various levels of customization, your cluster may currently have logs based Container Insights, managed Prometheus, or some other combination.
Note
Managed Prometheus visualizations for Container Insights use recording rules to improve chart performance, learn more about what rules are configured.
Open the Azure portal and navigate to your desired AKS cluster.
Choose the Monitor
or Insights
menu item from the menu, displaying a basic monitoring experience with options to onboard to monitoring.
Select the Monitoring Settings
button from the toolbar to open up the monitoring configuration blade or any of the Enable metrics
links below. Note that by default, the Logs and Events
dropdown is selected under Advanced Settings
.
To finish the setup, click the Configure
button.
Once the onboarding deployment completes, you should be able to see the Insights experience using Prometheus as the data source, indicated by the toolbar dropdown showing Managed Prometheus visualizations (Preview)
.
While the above steps are sufficient, for the full visualization experience, a few optional steps can be completed.
By default the labels for nodes and pods aren't available, but can be collected through re-enabling the addon. Node labels are required for filtering data by node pools.
az aks update --disable-azure-monitor-metrics -n <clusterName> -g <resourceGroup>
--ksm-metric-labels-allow-list
az aks update -n <clusterName> -g <resourceGroup> --enable-azure-monitor-metrics --ksm-metric-labels-allow-list "nodes=[*], pods=[*]" --azure-monitor-workspace-resource-id <amw-id
If you're currently using the logs based Container Insights experience, then you can choose to stop ingesting metrics to Log Analytics to save on billing. Once you confirm the Prometheus backed Container Insights experience is sufficient for your purposes, complete the steps to stop metrics ingestion to Log Analytics.
Navigate to the monitoring settings for your clusters by following the instructions on how to configure your Container Insights data collection rule
From the Cost presets dropdown, select "Logs and Events" and save to configure.
Note
Disabling the Log Analytics metrics also disables the visualization dropdown in the toolbar. Revert to using one of the standard cost presets in the Monitoring Settings
blade to re-enable the Log Analytics visualizations.
As this feature is currently in preview, there are several, known limitations, the following features aren't supported
When using the Prometheus based Container Insights experience, you may encounter the following errors.
This issue occurs if the network traffic for the Azure Monitor workspace is blocked. The root cause of this is typically related to network policies, such as ad blocking software. To resolve this issue, disable the ad block or allowlist monitor.azure.com
traffic and reload the page.
This error occurs when the user doesn't have permissions to view the associated Prometheus data collection rule for the cluster or the data collection rule may have been deleted. To resolve this error, grant access to the Prometheus data collection rule or reconfigure managed Prometheus using the Monitoring Settings
button in the toolbar.
This error occurs when the user doesn't have permissions to view the associated Azure Monitor workspace for the cluster or the Azure Monitor workspace may have been deleted. To resolve this error, grant access to the Azure Monitor workspace or reconfigure managed Prometheus by deleting and redeploying the addon.
This error typically occurs when querying large volumes of data and may be resolved by reducing the time range to a shorter window or filtering for fewer objects.
This error occurs when the recording rules may have been modified or deleted. Use the Reconfigure
button to patch the recording rules and try again.
This occurs when the user's portal token expires or doesn't have permissions to view the associated Azure Monitor workspace for the cluster. This can typically be resolved by refreshing the browser session or logging in again.
If this error message persists, then contact support to open up a ticket.
Kaganapan
Mar 17, 9 PM - Mar 21, 10 AM
Sumali sa serye ng meetup upang bumuo ng mga scalable AI solusyon batay sa mga kaso ng paggamit ng tunay na mundo sa mga kapwa developer at eksperto.
Magparehistro naPagsasanay
Learning path
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization
Dokumentasyon
Default Prometheus metrics configuration in Azure Monitor - Azure Monitor
This article lists the default targets, dashboards, and recording rules for Prometheus metrics in Azure Monitor.
Enable monitoring for Kubernetes clusters - Azure Monitor
Learn how to enable Container insights and Managed Prometheus on an Azure Kubernetes Service (AKS) cluster.
Customize scraping of Prometheus metrics in Azure Monitor - Azure Monitor
Customize metrics scraping for a Kubernetes cluster with the metrics add-on in Azure Monitor.