blob: 8f7f55dd0f979d906618742b031a3588eb2ecebd [file] [log] [blame]
Scott Bakere3090f02022-05-31 15:51:41 -07001# SPDX-FileCopyrightText: 2022-present Intel Corporation
2# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
3#
4# SPDX-License-Identifier: Apache-2.0
5
6{{- if eq .Values.prometheusEnabled true }}
7
8apiVersion: monitoring.coreos.com/v1
9kind: ServiceMonitor
10metadata:
11 name: fabric-adapter
12 labels:
13 {{- include "fabric-adapter.labels" . | nindent 4 }}
14spec:
15 selector:
16 matchLabels:
17 {{- include "fabric-adapter.selectorLabels" . | nindent 6 }}
18 endpoints:
19 - port: prometheus
20 path: /metrics
21 scheme: HTTP
22{{ end }}