Yi Tseng | 3256142 | 2021-10-07 15:03:21 -0700 | [diff] [blame] | 1 | {{- if eq .Values.prometheus_enable true }} |
| 2 | |
| 3 | {{/* |
| 4 | # Copyright 2021-present Open Networking Foundation |
| 5 | |
| 6 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 7 | */}} |
| 8 | |
| 9 | apiVersion: monitoring.coreos.com/v1 |
| 10 | kind: ServiceMonitor |
| 11 | metadata: |
| 12 | name: dbuf |
| 13 | labels: |
| 14 | {{- include "dbuf.labels" . | nindent 4 }} |
| 15 | spec: |
| 16 | selector: |
| 17 | matchLabels: |
| 18 | {{- include "dbuf.selectorLabels" . | nindent 6 }} |
| 19 | endpoints: |
| 20 | - port: exporter |
| 21 | path: /metrics |
| 22 | scheme: HTTP |
| 23 | {{ end }} |