Skip to main content

Viewing Logs and Monitoring Dashboards

A core component of the Infrastream platform is its built-in observability stack. You do not need to set up or configure logging agents, metric collectors, or dashboarding tools. The platform automatically handles this for you, providing centralized logging and pre-configured monitoring dashboards for all your applications and services.

This guide explains how to access and use these features through the Google Cloud Console.


Accessing Centralized Logs

All logs from your applications—whether running on GKE, Cloud Run, or Compute Engine VMs—are automatically collected, indexed, and made searchable in Google Cloud Logging.

Step 1: Navigate to Logs Explorer

  1. Open the Google Cloud Console.
  2. Ensure you have selected the correct GCP Project that corresponds to your application's environment.
  3. In the main navigation menu (), scroll down to the "Operations" section and click on Logging, then select Logs Explorer.

Step 2: Querying for Your Application's Logs

The Logs Explorer provides a powerful interface for searching your logs. The most effective way to find your application's logs is to build a query.

  • For a Cloud Run Service: The easiest way is to filter by the service name. In the "Query" box, you can use a filter like this:

    resource.type="cloud_run_revision"
    resource.labels.service_name="your-application-name"
  • For a GKE Application: You can filter by the container name.

    resource.type="k8s_container"
    resource.labels.project_id="your-gcp-project-id"
    resource.labels.container_name="your-application-name"
  • For a VM-Based Application: Logs are typically collected by the Ops Agent and can be filtered by the VM name.

    resource.type="gce_instance"
    resource.labels.instance_id="your-vm-instance-id" // You can find this in the GCP console

Tip: For your application logs to be most effective, write them to stdout or stderr as structured JSON. The Logs Explorer will automatically parse the JSON, allowing you to easily query and filter based on specific fields within your log messages (e.g., jsonPayload.userId).


Using Pre-Configured Monitoring Dashboards

Infrastream automatically provisions monitoring dashboards in Google Cloud Monitoring for the key resources in your project, giving you immediate insight into the health and performance of your services.

Step 1: Navigate to Monitoring Dashboards

  1. Open the Google Cloud Console.
  2. Select the correct GCP Project.
  3. In the main navigation menu (), scroll down to the "Operations" section and click on Monitoring.
  4. In the Monitoring navigation pane, select Dashboards.

Step 2: Find Your Project's Dashboard

On the Dashboards overview page, you will find a list of all available dashboards. Infrastream creates dashboards with standardized names, typically prefixed with your project's name.

Look for dashboards with names like:

  • [Your Project Name] - GKE Cluster Health
  • [Your Project Name] - Cloud Run Service Performance
  • [Your Project Name] - [Database Name] - Performance
  • [Your Project Name] - [Ingress Name] - Load Balancer Metrics

Step 3: Analyze the Data

Click on a dashboard to view the pre-configured charts and metrics. These dashboards are designed to provide an at-a-glance overview of the most critical health signals for your resources, including:

  • Compute: CPU and Memory Utilization, Instance Counts.
  • Networking: Request Latency, Error Rates, Traffic Volume.
  • Databases: Connection Counts, Query Throughput, CPU Usage.

Automated Alerting

In addition to dashboards, the platform automatically configures a baseline set of alerts on your resources. If one of your applications or databases begins to experience issues (such as a high error rate, excessive latency, or resource exhaustion), the platform will automatically send a notification to the stakeholders defined in your project's permissions block. You do not need to configure these alerts, but you should be aware that they are active and monitoring your services.