Charles Chan | e1e5e62 | 2022-02-16 15:17:05 -0800 | [diff] [blame] | 1 | {{/* |
2 | # Copyright 2020-present Open Networking Foundation | ||||
3 | |||||
4 | # SPDX-License-Identifier: Apache-2.0 | ||||
5 | */}} | ||||
6 | {{- if .Values.servicemonitor.enabled }} | ||||
7 | --- | ||||
8 | apiVersion: monitoring.coreos.com/v1 | ||||
9 | kind: ServiceMonitor | ||||
10 | metadata: | ||||
11 | name: upf | ||||
12 | spec: | ||||
13 | endpoints: | ||||
14 | - path: /metrics | ||||
15 | port: prometheus-exporter | ||||
16 | selector: | ||||
17 | matchLabels: | ||||
18 | {{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 6 }} | ||||
19 | {{- end }} |