[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-05(UTC)"],[[["\u003cp\u003eKey Visualizer helps identify performance issues related to Firestore in Datastore mode usage patterns by analyzing activity scans.\u003c/p\u003e\n"],["\u003cp\u003eTo use Key Visualizer, you need to enable the Firestore Key Visualizer API and have one of the necessary IAM roles such as Cloud Datastore Owner or Editor.\u003c/p\u003e\n"],["\u003cp\u003eEach Key Visualizer scan covers a two-hour period and is available for databases with traffic exceeding 3000 document operations per minute.\u003c/p\u003e\n"],["\u003cp\u003eYou can access Key Visualizer through the Google Cloud console by navigating to the Databases page and selecting the "Key Visualizer" option in the navigation menu.\u003c/p\u003e\n"],["\u003cp\u003eKey Visualizer allows users to view different metrics, such as Ops/s for entity keys and Index Write Ops/s for index keys, and also compare metrics to identify data correlations.\u003c/p\u003e\n"]]],[],null,["# Get started with Key Visualizer\n\nThis page describes how to use Key Visualizer to check for performance issues\nthat are related to your Firestore in Datastore mode usage patterns.\n\nBefore you begin\n----------------\n\nTo use Key Visualizer for Datastore mode, you must enable the\nFirestore Key Visualizer API.\n\n\n[Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=firestorekeyvisualizer.googleapis.com&redirect=https://console.cloud.google.com)\n\n### Required roles\n\nMake sure that your account is granted one of the following IAM\nroles:\n\n- Cloud Datastore Owner\n- Cloud Datastore Key Visualizer Viewer\n- Editor\n- Owner\n\nThese roles include the following IAM permissions which are\nrequired to access Key Visualizer:\n\n- `datastore.keyVisualizerScans.get`\n- `datastore.keyVisualizerScans.list`\n- `datastore.databases.getMetadata`\n- `resourcemanager.projects.get`\n\nYou can also define a [custom role](/iam/docs/creating-custom-roles) with the\nrequired permissions.\n\nViewing a scan for a time period\n--------------------------------\n\n\nEach Key Visualizer scan covers a two hour period. A scan for a given period\nis available for databases with traffic that exceeds 3000 document operations\nin any given minute in that period.\n\n\u003cbr /\u003e\n\nTo launch Key Visualizer:\n\n1. In the Google Cloud console, go to the **Databases** page.\n\n [Go to Databases](https://console.cloud.google.com/firestore/databases)\n2. Select the required database from the list of databases.\n\n3. In the navigation menu, click **Key Visualizer**.\n\n4. Select a time span and a metric from the available Key Visualizer scans:\n\n 1. Click the **Pencil icon** in the upper right. Select a **Date**\n and a **Time Span**.\n\n Scans are available based on [scan eligibility](./key-visualizer#scan_eligibility).\n You can't select time spans that did not meet scan eligibility or that are\n still processing. The two most recent scans of the day will take some\n time to process before they are available.\n 2. Select **All entity data** or **All index data** as the source.\n\n 3. Click **Update**.\n\n5. Select a metric to analyze:\n\n Click the metrics dropdown in the upper left and select a metric to view. Key\n Visualizer opens in the **Ops/s** metric for entity keys and **Index\n Write Ops/s** metric for index keys by default.\n\nTo compare metrics or look for data correlations, you can display\nmultiple Key Visualizer metrics together.\nSee [Finding connections between different metrics](./keyvis-exploring-heatmaps#finding-connections).\n\nViewing an activity overview\n----------------------------\n\nTo get an overview of activity during the selected two-hour time period,\nreview the heatmap for the default metric.\n\nThe following example shows a heatmap where there are major differences in the\nusage pattern for different key ranges:\n\n- Ranges shown in dark colors have little or no activity.\n- Ranges in bright colors have significantly more activity.\n- The glowing white range in the middle has very high activity.\n\n### Entity keys scan\n\nThe **Ops/s** metric measures the number of requests per second for each key\nrange. This metric is a sum of write, lookup, and query requests. Key Visualizer\nshows this metric by default when you open a heatmap.\n\nAfter getting an idea of the overall activity in your database,\nyou can continue your investigation by looking at other metrics and\nfocusing on key ranges that might be causing problems. [Learn\nmore](./keyvis-exploring-heatmaps).\n\n### Index keys scan\n\nThe **Index Write Ops/s** metric at a given cell measures the average index writes per second\nwithin the corresponding 10-second time interval and key range.\n\nWhat's next\n-----------\n\n- Learn to recognize [common patterns in heatmaps for entity keys](./keyvis-patterns).\n- Learn to recognize [common patterns in heatmaps for index keys](/firestore/docs/keyvis-patterns-index).\n- Find out how to [explore a heatmap in depth](./keyvis-exploring-heatmaps)."]]