Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
A fin de transferir métricas de autosupervisión de Prometheus desde Managed Service para Prometheus, aplica el siguiente manifiesto de PodMonitoring:
# Copyright 2022 Google LLC## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## https://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.apiVersion:monitoring.googleapis.com/v1kind:PodMonitoringmetadata:namespace:gmp-systemname:collectorlabels:app.kubernetes.io/name:collectorapp.kubernetes.io/part-of:google-cloud-managed-prometheusspec:selector:matchLabels:app.kubernetes.io/name:collectorendpoints:-port:prom-metricsinterval:30smetricRelabeling:-sourceLabels:[__name__]regex: > prometheus_target.*|prometheus_sd.*|net_conntrack_.*action:drop-port:cfg-rel-metricsinterval:30s---apiVersion:monitoring.googleapis.com/v1kind:PodMonitoringmetadata:namespace:gmp-systemname:rule-evaluatorlabels:app.kubernetes.io/name:rule-evaluatorapp.kubernetes.io/part-of:google-cloud-managed-prometheusspec:selector:matchLabels:app.kubernetes.io/name:rule-evaluatorendpoints:-port:r-eval-metricsinterval:30s-port:cfg-rel-metricsinterval:30s---apiVersion:monitoring.googleapis.com/v1kind:PodMonitoringmetadata:namespace:gmp-systemname:gmp-operatorlabels:app.kubernetes.io/name:gmp-operatorapp.kubernetes.io/part-of:google-cloud-managed-prometheusspec:selector:matchLabels:app.kubernetes.io/name:gmp-operatorendpoints:-port:metricsinterval:30s---apiVersion:monitoring.googleapis.com/v1kind:PodMonitoringmetadata:namespace:gmp-systemname:alertmanagerlabels:app.kubernetes.io/name:alertmanagerapp.kubernetes.io/part-of:google-cloud-managed-prometheusspec:selector:matchLabels:app.kubernetes.io/name:alertmanagerendpoints:-port:alertmanagerinterval:30s-port:cfg-rel-metricsinterval:30s
Para instalar manifiestos, cópialos en un archivo local y, luego, ejecuta kubectl apply -f FILE_NAME.
También puedes instalar manifiestos con Terraform.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-02-01 (UTC)"],[],[]]