blob: 0899a4443063656d6a61e283f4cd383cf07dc68a [file] [log] [blame]
Yi Tseng32561422021-10-07 15:03:21 -07001{{- if eq .Values.prometheus_enable true }}
2
3{{/*
4# Copyright 2021-present Open Networking Foundation
5
Charles Chand1b4bf92022-02-02 16:27:10 -08006# SPDX-License-Identifier: Apache-2.0
Yi Tseng32561422021-10-07 15:03:21 -07007*/}}
8
9apiVersion: monitoring.coreos.com/v1
10kind: ServiceMonitor
11metadata:
12 name: dbuf
13 labels:
14 {{- include "dbuf.labels" . | nindent 4 }}
15spec:
16 selector:
17 matchLabels:
18 {{- include "dbuf.selectorLabels" . | nindent 6 }}
19 endpoints:
20 - port: exporter
21 path: /metrics
22 scheme: HTTP
23{{ end }}