blob: 7b42752d2dd79eac5f13737aa9964a0e181553dc [file] [log] [blame]
# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
#
# SPDX-License-Identifier: Apache-2.0
{{- if eq .Values.prometheusEnabled true }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: sdcore-adapter
labels:
{{- include "sdcore-adapter.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "sdcore-adapter.selectorLabels" . | nindent 6 }}
endpoints:
- port: prometheus
path: /metrics
scheme: HTTP
{{ end }}