Estimating your Stackdriver bills

Overview

Based on your Stackdriver usage data, you can estimate your Stackdriver bills.

The Cloud Billing Reports page, as well as the Logging, Monitoring, and Trace consoles, show you your current usage data. In addition, the Logging and Monitoring consoles display your projected usage data for the current month.

This page details how to access your usage data, depending on the aggregation that you prefer:

Use Stackdriver usage data to estimate your bill

Once you have the usage data you want, as described in the sections below this one, you can estimate your future bill in two ways:

  • Refer to the Stackdriver pricing overview: Compare your current usage data with the prices found in this table to get a reasonable approximation of your future Stackdriver bills.

  • Use the Stackdriver pricing calculator:

    1. Add your current or projected Monitoring usage data to the Metrics section and click Add to estimate.
    2. Add your current or projected Logging usage data to the Logs section and click Add to estimate.
    3. Add your current Trace usage data to the Trace spans section and click Add to estimate.
    4. Once you have input your usage data, click the Estimate button at the top right of the calculator.

      You see estimates of your future Stackdriver bills to the right of the calculator. You can also Email Estimate or Save Estimate.

View Stackdriver usage by billing account

  1. From anywhere in the GCP Console, open the left-side Navigation menu and select Billing.
  2. If you have more than one billing account, select Go to linked billing account to view the current project's billing account. To locate a different billing account, select Manage billing accounts and choose the account for which you'd like to see usage reports.
  3. Select Reports from the left-side menu:

    Billing legends data

  4. Select Group By > SKU from the right-side menu. This menu might be hidden; you can access it by clicking the Show Filters button at the top right of the console.

  5. From the SKUs drop-down list, make the following selections:

    1. Log Volume (Stackdriver Logging usage)
    2. Spans Ingested (Stackdriver Trace usage)
    3. Metric Volume and Monitoring API Requests (Stackdriver Monitoring usage)

    You can also select just one or some of these SKUs if you don't want to group your usage data.

  6. You see your usage data, filtered by the SKUs you selected, in the legends under the stacked line chart, as shown below:

    Billing legends data

View detailed Stackdriver usage in Metrics Explorer

  1. Go to the Monitoring console:

    Go to Monitoring console

  2. Select Resources > Metrics Explorer from the left-hand menu.

  3. Under Find resource type and metric, select the Global resource type and then select from the following metrics:

    • Log bytes ingested: Log bytes ingested in Logging.
    • Monthly log bytes ingested: Each point represents the month-to-date sum of log bytes ingested in Logging. You can see the monthly total on the last day of the month, when it also resets.
    • Metric bytes ingested: Chargeable number of bytes of metric data ingested in Monitoring.
    • Trace spans ingested: Chargeable trace spans ingested in Trace.
    • Monthly trace spans ingested: Each point represents the month-to-date sum of trace spans ingested in Trace. It resets on the last day of the month; the monthly total is found on the last day of the month.
  4. Use the Filter, Group By, and Aggregation menus to see usage data by project, if you have multiple projects in your account. You can also use these menus to filter or group by resource or metric labels.

  5. You see your usage data, filtered by the metrics you selected, in the legends under the stacked line chart. To learn more about filtering and aggregations in the Metrics Explorer, see Selecting metrics.

If you can't see metrics usage data in the chart, then you might need to zoom out to 1w or 1m in the time range selector above the chart.

View Logging usage by GCP project

  1. Go to the Logging console:

    Go to Logging Console

  2. Select Logs ingestion in the left-hand column.

    The Logs ingestion pane displays a summary of your logs ingestion data for the selected GCP project. This data includes the previous month's total usage, the current month's to-date usage, and projected usage for the current month.

Optional: To see your project-level billing data in detail, click See Bill under Last month's ingested logs volume in the top header bar. This takes you to the Cloud Billing Reports page.

View Logging usage by resource type

  1. Go to the Logging console:

    Go to Logging Console

  2. Select Logs ingestion in the left-hand column.

    The Logs ingestion table displays a summary of your logs ingestion data by resource type. This data includes the previous month's total usage, the current month's to-date usage, and projected usage for the current month.

Optional: To view this per-resource-type usage data as a time series, click the overflow menu at the far right of each table entry and select View detailed usage in Metrics Explorer. Learn more about filtering and aggregations in Selecting metrics.

View logs-based metrics usage

  1. Go to the Logging console:

    Go to Logging Console

  2. Select Logs-based metrics in the left-hand column.

  3. In the User-defined Metrics table, you see your usage data:

    • Previous Month Usage represents the sum of bytes ingested in the logs-based metric in the previous calendar month.
    • Usage (MTD) represents the sum of bytes ingested in the logs-based metric in the current calendar month.

Optional: Clicking any of the column names lets you sort data in ascending or descending order. This is helpful, for example, if you want to see which metrics ingest the most data.

View Monitoring usage by Workspace

A Workspace is used in Stackdriver Monitoring to monitor the resources you care about, whether they are in a GCP project, an AWS account, or multiple GCP projects and AWS accounts. Monitoring organizes itself around Workspaces rather than around GCP projects, as other GCP services do. For more information, see Workspace.

To view your Monitoring usage by Workspace, do the following:

  1. Go to the Monitoring console:

    Go to Monitoring console

  2. Select Workspace Settings from the drop-down menu in the GCP project selector at the top of the page.

  3. Select Usage Details in the Settings left-hand column.

    The Metrics Ingested table displays a summary of your metrics ingestion data by resource. This data includes the previous month's total usage, the current month's to-date usage, and projected usage for the current month.

Optional: To get your project-level usage in detail, click View Bill to the right of a project name in the Metrics Ingested table. This takes you to the Cloud Billing Reports page.

Was this page helpful? Let us know how we did:

Send feedback about...

Stackdriver Documentation