Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Wenden Sie das folgende PodMonitoring-Manifest an, um Prometheus-Self-Monitoring-Messwerte aus Managed Service for Prometheus aufzunehmen.
# 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
Sie können Manifeste installieren, indem Sie sie in eine lokale Datei kopieren und dann kubectl apply -f FILE_NAME ausführen.
Sie können auch Manifeste mit Terraform installieren.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-02-01 (UTC)."],[],[]]