---
title: "GET /api/v1/config/gcp-metrics-integrations"
method: GET
path: "/api/v1/config/gcp-metrics-integrations"
tags: ["GcpMetricsIntegration"]
---

# GET /api/v1/config/gcp-metrics-integrations

`GET /api/v1/config/gcp-metrics-integrations`

## Query parameters

- `page.max_size` integer
- `page.token` string
- `slugs` string[]
- `names` string[]

## Response `200`

A successful response.

- Configv1ListGcpMetricsIntegrationsResponse
  - `gcp_metrics_integrations` Configv1GcpMetricsIntegration[]
    - `created_at` string, date-time — Timestamp of when the GcpMetricsIntegration was created. Cannot be set by clients.
    - `metric_groups` GcpMetricsIntegrationMetricGroup[] — An array of metric groups to be ingested for this integration.
      - `filters` Configv1GcpMetricsIntegrationFilter[] — Rollup rules to apply server-side aggregations to metrics in this group.
        - `context` 'RESOURCE_LABELS' | 'METRIC_LABELS' | 'METADATA_SYSTEM_LABELS' | 'METADATA_USER_LABELS' — LabelContext represents the scope of a label in GCP (used for filters and aggregations). - RESOURCE_LABELS: Scopes labels to resources. - METRIC_LABELS: Scopes labels to metrics. - METADATA_SYSTEM_LABELS: Scopes labels to system metadata. - METADATA_USER_LABELS: Scopes labels to user metadata.
        - `name` string — Label name to filter on.
        - `value_glob` string — Value pattern using glob syntax, such as `"prod-*"` or `"us-east-?"`. If a glob pattern isn't specified, an exact match is applied.
      - `prefixes` string[] — A list of Google Cloud metric prefixes to ingest. Filters to apply to metrics in this group.
      - `project_id` string — The Google Cloud project ID that can access the metric data.
      - `rollup_rules` Configv1GcpMetricsIntegrationRollupRule[]
        - `aggregation` 'MEAN' | 'MIN' | 'MAX' | 'SUM' | 'COUNT' — Specifies the cross-series aggregation method.
        - `label_policy` GcpMetricsIntegrationRollupRuleLabelPolicy — Specifies which labels to preserve during aggregation.
          - `keep` GcpMetricsIntegrationRollupRuleLabel[] — Labels to keep during aggregation.
            - `context` 'RESOURCE_LABELS' | 'METRIC_LABELS' | 'METADATA_SYSTEM_LABELS' | 'METADATA_USER_LABELS' — LabelContext represents the scope of a label in GCP (used for filters and aggregations). - RESOURCE_LABELS: Scopes labels to resources. - METRIC_LABELS: Scopes labels to metrics. - METADATA_SYSTEM_LABELS: Scopes labels to system metadata. - METADATA_USER_LABELS: Scopes labels to user metadata.
            - `name` string — Name of the label.
        - `metric_name` string — Metric name to apply the aggregation to, such as `"cloudsql.googleapis.com/database/uptime"`.
    - `name` string, required — The name of the GcpMetricsIntegration. You can modify this value after the GcpMetricsIntegration is created.
    - `service_account` Configv1GcpMetricsIntegrationServiceAccount
      - `client_email` string — The email address of the Google Cloud service account to impersonate for authentication.
    - `slug` string — The unique identifier of the GcpMetricsIntegration. If a `slug` isn't provided, one is generated based on the `name` field. You can't modify this field after the GcpMetricsIntegration is created.
    - `updated_at` string, date-time — Timestamp of when the GcpMetricsIntegration was last updated. Cannot be set by clients.
  - `page` Configv1PageResult
    - `next_token` string — An opaque page token that identifies the next page of items that the client should request. An empty value indicates that there are no more items to return.

## Other responses

- `500` — An unexpected error response.
- `default` — An undefined error response.

---

[API](https://skmtc.dev/chronosphere/apis/data-v1-api.md) · [All operations](https://skmtc.dev/chronosphere/apis/data-v1-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chronosphere/data-v1-api/revisions/ee91fd539ced/schema)
