Andy Bavier | e84456c | 2021-04-09 14:00:45 -0700 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 5 | */}} |
| 6 | {{- if .Values.servicemonitor.enabled }} |
| 7 | --- |
Andy Bavier | 75797e2 | 2021-04-19 19:42:05 -0700 | [diff] [blame] | 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 }} |
Andy Bavier | e84456c | 2021-04-09 14:00:45 -0700 | [diff] [blame] | 19 | {{- end }} |