You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observability provides visibility into every layer of your Azure IoT Operations configuration. It gives you insight into the actual behavior of issues, which increases the effectiveness of site reliability engineering. Azure IoT Operations offers observability through custom curated Grafana dashboards that are hosted in Azure. These dashboards are powered by Azure Monitor managed service for Prometheus and by Container Insights. This article shows you how to configure the services you need for observability.
18
+
Observability provides visibility into every layer of your Azure IoT Operations configuration. It gives you insight into the actual behavior of issues, which increases the effectiveness of site reliability engineering. Azure IoT Operations offers observability through custom curated Grafana dashboards that are hosted in Azure. These dashboards are powered by Azure Monitor managed service for Prometheus and by Container Insights. This article shows you how to configure the services you need for observability.
19
19
20
20
## Prerequisites
21
21
@@ -36,121 +36,202 @@ az provider register -n "Microsoft.AlertsManagement"
36
36
```
37
37
38
38
## Install observability components
39
-
The steps in this section install shared monitoring resources and configure your Arc enabled cluster to emit observability signals to these resources. The shared monitoring resources include Azure Managed Grafana, Azure Monitor Workspace, Azure Managed Prometheus, Azure Log Analytics, and Container Insights.
40
39
41
-
1. In your console, go to the local folder where you want to clone the Azure IoT Operations repo:
42
-
> [!NOTE]
43
-
> The repo contains the deployment definition of Azure IoT Operations, and samples that include the sample dashboards used in this article.
40
+
The steps in this section install shared monitoring resources and configure your Arc enabled cluster to emit observability signals to these resources. The shared monitoring resources include Azure Managed Grafana, Azure Monitor Workspace, Azure Managed Prometheus, Azure Log Analytics, and Container Insights. In this section, you also deploy an [OpenTelemetry (Otel) Collector](https://opentelemetry.io/docs/collector/)
41
+
42
+
1. In your console, go to the local folder where you want to clone the Azure IoT Operations repo:
43
+
44
+
> [!NOTE]
45
+
> The repo contains the deployment definition of Azure IoT Operations, and samples that include the sample dashboards used in this article.
44
46
45
47
1. Clone the repo to your local machine, using the following command:
1. Browse to the following path in your local copy of the repo:
52
54
53
-
*azure-iot-operations\tools\setup-3p-obs-infra*
54
-
55
-
1. To deploy the observability components, run the following command. Use the subscription ID and resource group of your Arc-enabled cluster that you want to monitor.
56
-
57
-
> [!NOTE]
58
-
> To discover other optional parameters you can set, see the [bicep file](https://github.com/Azure/azure-iot-operations/blob/main/tools/setup-3p-obs-infra/observability-full.bicep). The optional parameters can specify things like alternative locations for cluster resources.
59
-
60
-
```azurecli
61
-
az deployment group create \
62
-
--subscription <subscription-id> \
63
-
--resource-group <cluster-resource-group> \
64
-
--template-file observability-full.bicep \
65
-
--parameters grafanaAdminId=$(az ad user show --id $(az account show --query user.name --output tsv) --query=id --output tsv) \
The previous command grants admin access for the newly created Grafana instance to the user who runs it. If that access isn't what you want, run the following command instead. You need to set up permissions manually before anyone can access the Grafana instance.
1. Deploy the observability components by running one of the following commands. Use the subscription ID and resource group of the Arc-enabled cluster that you want to monitor.
133
+
134
+
> [!NOTE]
135
+
> To discover other optional parameters you can set, see the [bicep file](https://github.com/Azure/azure-iot-operations/blob/main/tools/setup-3p-obs-infra/observability-full.bicep). The optional parameters can specify things like alternative locations for cluster resources.
136
+
137
+
The following command grants admin access for the newly created Grafana instance to the user:
138
+
139
+
```azurecli
140
+
az deployment group create \
141
+
--subscription <subscription-id> \
142
+
--resource-group <cluster-resource-group> \
143
+
--template-file observability-full.bicep \
144
+
--parameters grafanaAdminId=$(az ad user show --id $(az account show --query user.name --output tsv) --query=id --output tsv) \
If that access isn't what you want, the following command that doesn't configure permissions. Then, set up permissions manually using [role assignments](../../managed-grafana/how-to-share-grafana-workspace.md#add-a-grafana-role-assignment) before anyone can access the Grafana instance. Assign one of the Grafana roles (Grafana Admin, Grafana Editor, Grafana Viewer) depending on the level of access desired.
To set up permissions manually, [add a role assignment](../../managed-grafana/how-to-share-grafana-workspace.md#add-a-grafana-role-assignment) to the Grafana instance for any users who should have access. Assign one of the Grafana roles (Grafana Admin, Grafana Editor, Grafana Viewer) depending on the level of access desired.
162
+
```
86
163
87
-
If the deployment succeeds, a few pieces of information are printed at the end of the command output. The information includes the Grafana URL and the resource IDs for both the Log Analytics and Azure Monitor resources that were created. The Grafana URL allows you to go to the Grafana instance that you configure in [Deploy dashboards to Grafana](#deploy-dashboards-to-grafana). The two resource IDs enable you to configure other Arc enabled clusters by following the steps in [Add an Arc-enabled cluster to existing observability infrastructure](howto-add-cluster.md).
164
+
If the deployment succeeds, a few pieces of information are printed at the end of the command output. The information includes the Grafana URL and the resource IDs for both the Log Analytics and Azure Monitor resources that were created. The Grafana URL allows you to go to the Grafana instance that you configure in [Deploy dashboards to Grafana](#deploy-dashboards-to-grafana). The two resource IDs enable you to configure other Arc enabled clusters by following the steps in [Add an Arc-enabled cluster to existing observability infrastructure](howto-add-cluster.md).
88
165
89
166
## Configure Prometheus metrics collection
90
-
1. Copy and paste the following configuration to a new file named *ama-metrics-prometheus-config.yaml*, and save the file:
Azure IoT Operations provides a collection of dashboards designed to give you many of the visualizations you need to understand the health and performance of your Azure IoT Operations deployment.
152
233
153
-
Complete the following steps to install the Azure IoT Operations curated Grafana dashboards.
234
+
Complete the following steps to install the Azure IoT Operations curated Grafana dashboards.
154
235
155
236
1. Sign in to the Grafana console, then in the upper right area of the Grafana application, select the **+** icon
156
237
@@ -163,4 +244,4 @@ Complete the following steps to install the Azure IoT Operations curated Grafana
Copy file name to clipboardExpand all lines: articles/iot-operations/deploy-iot-ops/howto-deploy-iot-operations.md
-18Lines changed: 0 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,24 +27,6 @@ Learn how to deploy Azure IoT Operations Preview to a Kubernetes cluster and the
27
27
28
28
In this article, when we talk about deploying Azure IoT Operations we mean the full set of components that make up a *deployment*. Once the deployment exists, you can view, manage, and update the *instance*.
29
29
30
-
## Choose your features
31
-
32
-
Azure IoT Operations offers two deployment modes. You can choose to deploy a basic subset of features that are simpler to get started with for evaluation scenarios, or you can choose to deploy the full feature set.
33
-
34
-
* Basic feature deployment:
35
-
36
-
* Does not configure secrets or user-assigned managed identity capabilities.
37
-
* Is meant to enable the end-to-end quickstart sample for evaluation purposes, so does support the OPC PLC simulator and connect to cloud resources using system-assigned managed identity.
38
-
* Can be upgraded to include the full set of features. For the steps to enable secrets and user-assigned managed identity, see [Configure secrets on your cluster](./howto-manage-secrets.md)
39
-
40
-
* Full feature deployment:
41
-
42
-
* Includes the steps to enable secrets and user-assignment managed identity, which are important capabilities for developing a production-ready scenario. Secrets are used whenever Azure IoT Operations components connect to a resource outside of the cluster; for example, an OPC UA server or a dataflow source or destination endpoint.
43
-
44
-
If you want to deploy the basic subset, see [Quickstart: Run Azure IoT Operations Preview in GitHub Codespaces with K3s](../get-started-end-to-end-sample/quickstart-deploy.md).
45
-
46
-
This article provides steps to deploy the full feature set for Azure IoT Operations.
0 commit comments