Stay organized with collections
Save and categorize content based on your preferences.
You can observe Database Service metrics with the monitoring instance. See Monitoring and visualizing
metrics
for general information about the monitoring and visualizing processes for
Application Operators (AO) in GDC.
You must create a database cluster before you can observe its metrics.
View diagnostic logs
Navigate to the monitoring instance UI to access the database diagnostic logs for a
database cluster.
Click the exploreExplore
button from the menu to open the Explore page.
Enter a query to search for Database Service logs using LogQL.
Using the Label filters drop-down menu, create a filter for
service_name=ods.
Click the addOperations button and select Line contains. Enter the database
cluster's name in the text box.
Click the addOperations button again and select Line contains. Enter
PROJECT_NAME in the text box.
Click the Run query button.
View metrics
Navigate to the monitoring instance UI to access the metrics for a database cluster.
From the drop-down menu, select prometheus as the data source to
retrieve metrics.
Application operators can access Database Service metrics that have the ods_ prefix.
Enter ods_ in the Select a metric text box in the Metrics browser
panel to view all Database Service metric types.
Application operators can also access metrics with the pg_ prefix.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# Observe metrics\n\nYou can observe Database Service metrics with the monitoring instance. See [Monitoring and visualizing\nmetrics](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/observability-monitoring-and-visualizing)\nfor general information about the monitoring and visualizing processes for\nApplication Operators (AO) in GDC.\n\nYou must create a database cluster before you can observe its metrics.\n\nView diagnostic logs\n--------------------\n\n1. Navigate to the monitoring instance UI to access the database diagnostic logs for a\n database cluster.\n\n2. Click the explore **Explore**\n button from the menu to open the **Explore** page.\n\n3. Enter a query to search for Database Service logs using LogQL.\n\n 1. Using the **Label filters** drop-down menu, create a filter for\n `service_name=ods`.\n\n 2. Click the add\n **Operations** button and select **Line contains**. Enter the database\n cluster's name in the text box.\n\n 3. Click the add\n **Operations** button again and select **Line contains** . Enter\n \u003cvar translate=\"no\"\u003ePROJECT_NAME\u003c/var\u003e in the text box.\n\n 4. Click the **Run query** button.\n\nView metrics\n------------\n\n1. Navigate to the monitoring instance UI to access the metrics for a database cluster.\n\n2. From the drop-down menu, select **prometheus** as the data source to\n retrieve metrics.\n\n3. Application operators can access Database Service metrics that have the `ods_` prefix.\n Enter `ods_` in the **Select a metric** text box in the **Metrics browser**\n panel to view all Database Service metric types.\n\n4. Application operators can also access metrics with the `pg_` prefix."]]