agones.dev/agones@v1.54.0/build/prometheus-google-managed.yaml (about)

     1  ---
     2  # Copyright 2023 Google LLC All Rights Reserved.
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #
     8  #     http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  apiVersion: monitoring.googleapis.com/v1
    16  kind: PodMonitoring
    17  metadata:
    18    name: agones
    19  spec:
    20    selector:
    21      matchLabels:
    22        app: agones
    23    targetLabels:
    24      fromPod:
    25        - from: app
    26          to: app
    27        - from: agones.dev/role
    28          to: agones_dev_role
    29        - from: multicluster.agones.dev/role
    30          to: multicluster_agones_dev_role
    31    endpoints:
    32      - port: http
    33        interval: 30s
    34        metricRelabeling:
    35          - sourceLabels: [namespace]
    36            targetLabel: kubernetes_namespace
    37            action: replace
    38          - sourceLabels: [pod]
    39            targetLabel: kubernetes_pod_name
    40            action: replace