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
= Enabling monitoring dashboards in a hosted cluster
8
8
9
-
To enable monitoring dashboards in a hosted cluster, complete the following steps:
9
+
You can enable monitoring dashboards in a hosted cluster by creating a config map.
10
10
11
11
.Procedure
12
12
13
-
. Create the `hypershift-operator-install-flags` config map in the `local-cluster` namespace, being sure to specify the `--monitoring-dashboards` flag in the `data.installFlagsToAdd` section. For example:
13
+
. Create the `hypershift-operator-install-flags` config map in the `local-cluster` namespace. See the following example configuration:
<1> The `--monitoring-dashboards --metrics-set=All` flag adds the monitoring dashboard for all metrics.
27
28
28
29
. Wait a couple of minutes for the HyperShift Operator deployment in the `hypershift` namespace to be updated to include the following environment variable:
29
30
@@ -39,9 +40,9 @@ When monitoring dashboards are enabled, for each hosted cluster that the HyperSh
39
40
40
41
. To view the dashboard, log in to the management cluster's console and go to the dashboard for the hosted cluster by clicking *Observe -> Dashboards*.
41
42
42
-
. Optional: To disable a monitoring dashboards in a hosted cluster, remove the `--monitoring-dashboards` flag from the `hypershift-operator-install-flags` config map. When you delete a hosted cluster, its corresponding dashboard is also deleted.
43
+
. Optional: To disable monitoring dashboards in a hosted cluster, remove the `--monitoring-dashboards --metrics-set=All` flag from the `hypershift-operator-install-flags` config map. When you delete a hosted cluster, its corresponding dashboard is also deleted.
To generate dashboards for each hosted cluster, the HyperShift Operator uses a template that is stored in the `monitoring-dashboard-template` config map in the Operator namespace (`hypershift`). This template contains a set of Grafana panels that contain the metrics for the dashboard. You can edit the content of the config map to customize the dashboards.
0 commit comments