Skip to content

Commit

Permalink
feat: expose metrics port
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraiya-Hameed committed Apr 18, 2023
1 parent 5f5049e commit 14d7c97
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
{{- if .Values.enableArcExtension }}
{{- if .Values.arc.enableMonitoring }}
prometheus.io/scrape: "true"
prometheus.io/port: "8898"
prometheus.io/port: "{{ .Values.providerMetricsAddr }}"
{{- end }}
{{- end }}
{{- end }}
Expand Down Expand Up @@ -76,6 +76,10 @@ spec:
name: arc-proxy-config
{{- end }}
{{- end }}
ports:
- containerPort: {{ .Values.providerMetricsAddr }}
name: metrics
protocol: TCP
volumeMounts:
- name: provider-vol
mountPath: "C:\\provider"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
{{- if .Values.enableArcExtension }}
{{- if .Values.arc.enableMonitoring }}
prometheus.io/scrape: "true"
prometheus.io/port: "8898"
prometheus.io/port: "{{ .Values.providerMetricsAddr }}"
{{- end }}
{{- end }}
# this will ensure pods are rolled in next helm upgrade if cert files are updated.
Expand Down Expand Up @@ -76,6 +76,10 @@ spec:
periodSeconds: 30
resources:
{{ toYaml .Values.linux.resources | indent 12 }}
ports:
- containerPort: {{ .Values.providerMetricsAddr }}
name: metrics
protocol: TCP
securityContext:
{{- if not .Values.linux.privileged }}
allowPrivilegeEscalation: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,6 @@ constructPEMChain: true

# Write cert and key in separate files. The individual files will be named as <secret-name>.crt and <secret-name>.key. These files will be created in addition to the single file.
writeCertAndKeyInSeparateFiles: false

# Port that servers metrics
providerMetricsAddr: "8898"
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ spec:
limits:
cpu: 100m
memory: 200Mi
ports:
- containerPort: {{ .Values.providerMetricsAddr }}
name: metrics
protocol: TCP
volumeMounts:
- mountPath: "C:\\provider"
name: providervol
Expand Down
4 changes: 4 additions & 0 deletions manifest_staging/deployment/provider-azure-installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ spec:
limits:
cpu: 50m
memory: 100Mi
ports:
- containerPort: {{ .Values.providerMetricsAddr }}
name: metrics
protocol: TCP
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down

0 comments on commit 14d7c97

Please sign in to comment.