blob: 7b42752d2dd79eac5f13737aa9964a0e181553dc [file] [log] [blame]
Scott Baker9e83ea82021-10-13 08:55:41 -07001# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
2#
Sean Condon160ec1d2022-02-08 12:58:25 +00003# SPDX-License-Identifier: Apache-2.0
Scott Baker9e83ea82021-10-13 08:55:41 -07004
5{{- if eq .Values.prometheusEnabled true }}
6
7apiVersion: monitoring.coreos.com/v1
8kind: ServiceMonitor
9metadata:
10 name: sdcore-adapter
11 labels:
12 {{- include "sdcore-adapter.labels" . | nindent 4 }}
13spec:
14 selector:
15 matchLabels:
16 {{- include "sdcore-adapter.selectorLabels" . | nindent 6 }}
17 endpoints:
18 - port: prometheus
19 path: /metrics
20 scheme: HTTP
21{{ end }}