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
<1> The custom network policy must be applied to all namespaces.
61
118
62
119
. Apply a `Telemetry` object to enable traffic metrics in Istio proxies:
63
120
+
@@ -99,11 +156,18 @@ spec:
99
156
interval: 30s
100
157
relabelings:
101
158
- action: replace
102
-
replacement: "<smcp_name>-<smcp_namespace>" # <2>
159
+
replacement: "basic-istio-system" # <2>
103
160
targetLabel: mesh_id
104
161
----
105
162
<1> Since {product-title} monitoring ignores the `namespaceSelector` spec in `ServiceMonitor` and `PodMonitor` objects, you must apply the `PodMonitor` object in all mesh namespaces, including the control plane namespace.
106
-
<2> A shared Prometheus instance can include metrics from multiple meshes. However, if you are deploying Kiali, the metrics must be associated with a single mesh. To associate metrics with a single mesh, add a unique `mesh_id` to each one. Doing so narrows the query scope in Kiali to only the relevant mesh metrics.
163
+
<2> The string `"basic-istio-system"` is a combination of the SMCP name and its namespace, but any label can be used as long as it is unique for every mesh using user workload monitoring in the cluster. The `spec.prometheus.query_scope` of the Kiali resource configured in Step 2 needs to match this value.
164
+
+
165
+
[NOTE]
166
+
====
167
+
If there is only one mesh using user-workload monitoring, then both the `mesh_id` relabeling and the `spec.prometheus.query_scope` field in the Kiali resource are optional (but the `query_scope` field given here should be removed if the `mesh_id` label is removed).
168
+
169
+
If there might be multiple meshes using user-workload monitoring, then both the `mesh_id` relabelings and the `spec.prometheus.query_scope` field in the Kiali resource are required so that Kiali only sees metrics from its associated mesh. If Kiali is not being deployed, applying the `mesh_id` relabeling is still recommended so that metrics from different meshes can be distinguished from one another.
170
+
====
107
171
108
172
. Apply a `PodMonitor` object to collect metrics from Istio proxies:
109
173
+
@@ -149,10 +213,17 @@ spec:
149
213
action: replace
150
214
targetLabel: pod_name
151
215
- action: replace
152
-
replacement: "<smcp_name>-<smcp_namespace>" # <2>
216
+
replacement: "basic-istio-system" # <2>
153
217
targetLabel: mesh_id
154
218
----
155
219
<1> Since {product-title} monitoring ignores the `namespaceSelector` spec in `ServiceMonitor` and `PodMonitor` objects, you must apply the `PodMonitor` object in all mesh namespaces, including the control plane namespace.
156
-
<2> A shared Prometheus instance can include metrics from multiple meshes. However, if you are deploying Kiali, the metrics must be associated with a single mesh. To associate metrics with a single mesh, add a unique `mesh_id` to each one. Doing so narrows the query scope in Kiali to only the relevant mesh metrics.
220
+
<2> The string `"basic-istio-system"` is a combination of the SMCP name and its namespace, but any label can be used as long as it is unique for every mesh using user workload monitoring in the cluster. The `spec.prometheus.query_scope` of the Kiali resource configured in Step 2 needs to match this value.
221
+
+
222
+
[NOTE]
223
+
====
224
+
If there is only one mesh using user-workload monitoring, then both the `mesh_id` relabeling and the `spec.prometheus.query_scope` field in the Kiali resource are optional (but the `query_scope` field given here should be removed if the `mesh_id` label is removed).
225
+
226
+
If there might be multiple meshes using user-workload monitoring, then both the `mesh_id` relabelings and the `spec.prometheus.query_scope` field in the Kiali resource are required so that Kiali only sees metrics from its associated mesh. If Kiali is not being deployed, applying the `mesh_id` relabeling is still recommended so that metrics from different meshes can be distinguished from one another.
227
+
====
157
228
158
229
. Open the {product-title} web console, and check that metrics are visible.
0 commit comments