[component_id_index] Add memory_monitor and regulator_region

These components only use cache, but losing their cache will result in a
degraded experience or loss of diagnostics. Including them to the index
migrates their cache storage to use an instance ID, so we'll be able to
migrate these components to v2 without them losing their cache.

Bug: 74359
Change-Id: I7ea3d655edecffe024ad64e98c05dbc9c73f4214
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/514492
Reviewed-by: Francois Rousseau <frousseau@google.com>
Commit-Queue: Vardhan Mudunuru <vardhan@google.com>
diff --git a/src/sys/appmgr/config/core_component_id_index.json5 b/src/sys/appmgr/config/core_component_id_index.json5
index 12d6aca..718461b 100644
--- a/src/sys/appmgr/config/core_component_id_index.json5
+++ b/src/sys/appmgr/config/core_component_id_index.json5
@@ -218,5 +218,29 @@
                 ],
             },
         },
+        // An entry for `memory_monitor` is needed to preserve /cache across the v2 migration.
+        // See https://fxbug.dev/74359 for more details.
+        {
+        instance_id: "1325984af473b7d90c8160b881d28d57e0c15a4805548092349cd262efab2677",
+        appmgr_moniker: {
+                url: "fuchsia-pkg://fuchsia.com/memory_monitor#meta/memory_monitor.cmx",
+                realm_path: [
+                    "app",
+                    "sys",
+                ],
+            },
+        },
+        // An entry for `regulatory_region` is needed to preserve /cache across the v2 migration.
+        // See https://fxbug.dev/74359 for more details.
+        {
+            instance_id: "9b2aac8bc3465533c6d6e8261478b0ab5a5db2b32cabd3b894ed40f8a695ac0f",
+            appmgr_moniker: {
+                url: "fuchsia-pkg://fuchsia.com/regulatory_region#meta/regulatory_region.cmx",
+                realm_path: [
+                    "app",
+                    "sys",
+                ],
+            },
+        },
     ],
 }