Skip to main content
POST
/
api
/
v1
/
config
/
gcp-metrics-integrations
cURL
curl --request POST \
  --url https://tenant.chronosphere.io/api/v1/config/gcp-metrics-integrations \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "gcp_metrics_integration": {
    "name": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "metric_groups": [
      {
        "filters": [
          {
            "context": "RESOURCE_LABELS",
            "name": "<string>",
            "value_glob": "<string>"
          }
        ],
        "prefixes": [
          "<string>"
        ],
        "project_id": "<string>",
        "rollup_rules": [
          {
            "aggregation": "MEAN",
            "label_policy": {
              "keep": [
                {
                  "context": "RESOURCE_LABELS",
                  "name": "<string>"
                }
              ]
            },
            "metric_name": "<string>"
          }
        ]
      }
    ],
    "service_account": {
      "client_email": "<string>"
    },
    "slug": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Body

application/json
dry_run
boolean

If true, validates the specified configuration without creating the GcpMetricsIntegration. If the specified configuration is valid, the endpoint returns a partial response without the GcpMetricsIntegration. If the specified configuration is invalid, the endpoint returns an error.

gcp_metrics_integration
object

The GcpMetricsIntegration to create.

Response

A successful response containing the created GcpMetricsIntegration.

gcp_metrics_integration
object