blob: f3d9c89127d855a0ba6746c6f5de3a4f3afcca7a [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001# 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
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 }}