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 | |
Charles Chan | d1b4bf9 | 2022-02-02 16:27:10 -0800 | [diff] [blame] | 6 | # SPDX-License-Identifier: Apache-2.0 |
Yi Tseng | 3256142 | 2021-10-07 15:03:21 -0700 | [diff] [blame] | 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 }} |