Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

Commit bdde164

Browse files
committed
expose metrics
1 parent 3b5ff19 commit bdde164

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

config/default/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ patchesStrategicMerge:
2828
# Protect the /metrics endpoint by putting it behind auth.
2929
# Only one of manager_auth_proxy_patch.yaml and
3030
# manager_prometheus_metrics_patch.yaml should be enabled.
31-
- manager_auth_proxy_patch.yaml
31+
#- manager_auth_proxy_patch.yaml
3232
# If you want your controller-manager to expose the /metrics
3333
# endpoint w/o any authn/z, uncomment the following line and
3434
# comment manager_auth_proxy_patch.yaml.
3535
# Only one of manager_auth_proxy_patch.yaml and
3636
# manager_prometheus_metrics_patch.yaml should be enabled.
37-
#- manager_prometheus_metrics_patch.yaml
37+
- manager_prometheus_metrics_patch.yaml
3838

3939
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in crd/kustomization.yaml
4040
#- manager_webhook_patch.yaml
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: monitoring.coreos.com/v1
2+
kind: ServiceMonitor
3+
metadata:
4+
name: prom-azure-databricks-operator-controller-manager-metrics-service
5+
labels:
6+
release: prom-azure-databricks-operator
7+
spec:
8+
selector:
9+
matchLabels:
10+
control-plane: controller-manager
11+
namespaceSelector:
12+
matchNames:
13+
- azure-databricks-operator-system
14+
endpoints:
15+
- path: /metrics
16+
port: http
17+
interval: 10s

config/rbac/auth_proxy_service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ spec:
1010
- name: https
1111
port: 8443
1212
targetPort: https
13+
- name: http
14+
port: 8080
15+
targetPort: 8080
1316
selector:
1417
control-plane: controller-manager

0 commit comments

Comments
 (0)