Scott Baker | 9e83ea8 | 2021-10-13 08:55:41 -0700 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org> |
| 2 | # |
| 3 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | {{- if eq .Values.prometheusEnabled true }} |
| 6 | |
| 7 | apiVersion: monitoring.coreos.com/v1 |
| 8 | kind: ServiceMonitor |
| 9 | metadata: |
| 10 | name: sdcore-adapter |
| 11 | labels: |
| 12 | {{- include "sdcore-adapter.labels" . | nindent 4 }} |
| 13 | spec: |
| 14 | selector: |
| 15 | matchLabels: |
| 16 | {{- include "sdcore-adapter.selectorLabels" . | nindent 6 }} |
| 17 | endpoints: |
| 18 | - port: prometheus |
| 19 | path: /metrics |
| 20 | scheme: HTTP |
| 21 | {{ end }} |