Scott Baker | 9e83ea8 | 2021-10-13 08:55:41 -0700 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org> |
| 2 | # |
Sean Condon | 160ec1d | 2022-02-08 12:58:25 +0000 | [diff] [blame] | 3 | # SPDX-License-Identifier: Apache-2.0 |
Scott Baker | 9e83ea8 | 2021-10-13 08:55:41 -0700 | [diff] [blame] | 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 }} |