An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
To address the issues you're facing with Azure Managed Prometheus on your private AKS cluster, here are some insights based on the context provided:
- Azure Monitor Workspace Link: The
azureMonitorProfilenot showing the Azure Monitor Workspace link could indicate that the metrics addon is enabled but not properly configured. Ensure that you are correctly specifying theazuremonitorworkspaceresourceidwhen enabling the metrics addon. If the workspace reference is still missing after re-enabling the addon, it may be beneficial to check for any Azure Policy restrictions that could be preventing the proper configuration. - TokenConfig.json Creation: The
TokenConfig.jsonfile is typically created and populated by theaddontokenadaptercontainer. This file is essential for the metrics collector to authenticate and connect to the Azure Monitor. If this file is missing, it may indicate that theaddontokenadaptercontainer is not starting correctly. You should check the logs of this container for any errors that might explain why it is not functioning as expected. - DNS Records for Private AKS with AMPLS: For a private AKS cluster using AMPLS, you generally need the following DNS records:
-
privatelink.eastus.prometheus.monitor.azure.com(for the ingestion endpoint) - Ensure that any other relevant FQDNs used by Azure Monitor services are also included in your DNS zone. You may need to consult Azure documentation or support for a complete list of required FQDNs.
-
- Known Issues with Metrics Addon: There can be issues with the metrics addon when using user-defined routing or when Azure Policies restrict DCR/DCE autocreation. Make sure that your firewall rules allow traffic to the necessary Azure Monitor endpoints, and verify that your policies do not block the required resources.
- Verifying DCR/DCE Configuration: To manually verify or repair the Data Collection Rule (DCR) and Data Collection Endpoint (DCE) configuration, you can check the Azure portal for the status of these resources. Ensure that they are correctly linked to your Azure Monitor Workspace and that the necessary permissions are granted.
If the automatic setup fails due to enterprise policy restrictions, you may need to manually configure the metrics addon by creating the required resources (DCR, DCE) and linking them to your Azure Monitor Workspace.
References: