Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Esta página aborda a criação e a desativação de alertas de faturamento e regras de alerta.
Antes de começar
Antes de continuar, verifique se você tem a seguinte função obrigatória:
MonitoringRule PA Creator: cria e gerencia recursos personalizados do MonitoringRule. Peça ao administrador do IAM da organização para conceder a você o papel monitoringrule-pa-creator.
Criar regras de alerta
Crie regras de alerta com base nas métricas de faturamento e nos limites de gastos usando o recurso MonitoringRule na API Observability.
Consulte Criar regras de alerta para instruções sobre como criar alertas usando o console do GDC.
Para criar uma regra de alerta, siga estas etapas:
Crie um arquivo YAML e adicione o recurso MonitoringRule e o conteúdo a seguir:
Substitua TASK_ORDER pela sua ordem de serviço e CLIN pelo número do item de linha do contrato.
SEVERITY
A gravidade da regra de alerta. Os valores de gravidade incluem error, critical, warning e info.
BILLING_CODE
O código de faturamento definido para a regra de alerta.
Por exemplo: "BILLING-100".
MESSAGE
Uma descrição do alerta que aparece quando a regra de alerta é executada.
Por exemplo: "Spending exceeded limit".
Aplique o conteúdo do arquivo YAML e defina a regra de alerta:
kubectlapply-fFILENAME.yaml
Criar alertas de limite de gastos
O operador de infraestrutura (IO) cria políticas de alertas de limite de gastos no console do GDC. Os alertas de limite de gastos são alertas de faturamento personalizados que indicam quando os custos de faturamento excedem o limite definido. Por exemplo, sua IO cria alertas de custo total de faturamento e os configura com base em um valor fixo em dólares ou como uma porcentagem do valor inicial orçado.
Para criar alertas de limite de gastos e outros alertas de faturamento no nível da organização,
envie uma solicitação ao seu IO. Inclua os seguintes parâmetros na sua solicitação:
Número da ordem de serviço (TO, na sigla em inglês).
CLIN
O valor total do orçamento para o TO e o CLIN especificados.
O limite do orçamento.
Silenciar alertas
É possível silenciar e cancelar o silenciamento de regras de alerta no console do GDC.
Siga as instruções em Silenciar um alerta.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 UTC."],[[["\u003cp\u003eThis page guides you through the process of creating billing alert rules using the \u003ccode\u003eMonitoringRule\u003c/code\u003e resource in the Observability API, based on invoice metrics and spend thresholds.\u003c/p\u003e\n"],["\u003cp\u003eTo create an alert rule, you need to have the \u003ccode\u003emonitoringrule-pa-creator\u003c/code\u003e role and then set up a YAML file with specific parameters, such as the alert name, expression, severity, and message.\u003c/p\u003e\n"],["\u003cp\u003eSpend threshold alerts, which are custom billing alerts that notify when billing costs exceed a set amount, are created by your Infrastructure Operator (IO) through a request process that includes task order number, CLIN, total budget, and budget threshold.\u003c/p\u003e\n"],["\u003cp\u003eYou can silence and unsilence alert rules via the GDC console by following the provided instructions.\u003c/p\u003e\n"],["\u003cp\u003eThis page also contains instructions on how to set up billing notification channels.\u003c/p\u003e\n"]]],[],null,["# Manage billing alerts\n\nThis page covers creating and silencing Billing alerts and alert rules.\n\nBefore you begin\n----------------\n\nBefore continuing, ensure you have the following required role:\n\n- **MonitoringRule PA Creator** : create and manage `MonitoringRule` custom resources. Ask your Organization IAM Admin to grant you the `monitoringrule-pa-creator` role.\n\nCreate alert rules\n------------------\n\nYou can create alert rules based on invoice metrics and your spend thresholds\nusing the [`MonitoringRule`](/distributed-cloud/hosted/docs/latest/gdch/apis/service/monitoring/v1/monitoring-v1#monitoringrule)\nresource in the [Observability API](/distributed-cloud/hosted/docs/latest/gdch/apis/observability-api-overview).\n\nSee [Create alert rules](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/create-alert-rules#create-rules)\nfor instructions on creating alerts using the GDC console.\n\nTo create an alert rule, work through the following steps:\n\n1. Create a YAML file, and add in the `MonitoringRule` resource and the\n following contents:\n\n apiVersion: monitoring.gdc.goog/v1\n kind: MonitoringRule\n metadata:\n name: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eMONITORING_RULE_NAME\u003c/span\u003e\u003c/var\u003e\n namespace: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003ePROJECT\u003c/span\u003e\u003c/var\u003e\n spec:\n interval: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eINTERVAL\u003c/span\u003e\u003c/var\u003e\n limit: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eLIMIT\u003c/span\u003e\u003c/var\u003e\n alertRules:\n - alert: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eALERT\u003c/span\u003e\u003c/var\u003e\n expr: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eEXPRESSION\u003c/span\u003e\u003c/var\u003e\n labels:\n severity: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eSEVERITY\u003c/span\u003e\u003c/var\u003e\n code: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eBILLING_CODE\u003c/span\u003e\u003c/var\u003e\n resource: BILLING\n annotations:\n message: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eMESSAGE\u003c/span\u003e\u003c/var\u003e\n\n Replace the following variables:\n\n2. Apply the contents of the YAML file and set the alert rule:\n\n kubectl apply -f \u003cvar translate=\"no\"\u003eFILENAME\u003c/var\u003e.yaml\n\nCreate spend threshold alerts\n-----------------------------\n\nYour Infrastructure Operator (IO) creates spend threshold alert policies in\nthe GDC console. Spend threshold alerts are custom billing alerts that indicate\nwhen the billing costs exceed the threshold you set. For example, your IO creates billing\ntotal cost alerts and configures the alerts based on a fixed dollar amount, or as\na percentage of the initial budgeted amount.\n\nTo create spend threshold alerts and other organization-level billing alerts,\nsubmit a request to your IO. Include the following parameters in your request:\n\n- Task order (TO) number.\n- CLIN\n- The total budget amount for the specified TO and CLIN.\n- The budget threshold.\n\nSilence alerts\n--------------\n\nYou can silence and unsilence alert rules through the GDC console.\nFollow the instructions in [Silence an alert](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/manage-alerts-and-policies#silence-an-alert).\n\nConfigure billing notifications\n-------------------------------\n\nTo configure billing notifications, follow the instructions in\n[Configure notification channels](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/configure-notification-channels)."]]