update to 2.x models
Change-Id: I341d160d53c0870c271d37c9207abd577876505c
diff --git a/sdcore-adapter-v2/templates/servicemonitor.yaml b/sdcore-adapter-v2/templates/servicemonitor.yaml
new file mode 100644
index 0000000..f3d9c89
--- /dev/null
+++ b/sdcore-adapter-v2/templates/servicemonitor.yaml
@@ -0,0 +1,21 @@
+# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
+#
+# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.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 }}