Skip to content

Commit

Permalink
default to empty metrics namespace and subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
sofuture committed Jan 22, 2025
1 parent 284a5ac commit 64f59dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ spec:
format: "prometheus"
targetValue: "2"
url: "http://site-controller.{{.Release.Namespace}}.svc.cluster.local:6001/metrics"
valueLocation: "{{ with .Values.siteController.deployment.metrics.namespace }}{{ . }}{{else}}foxglove_data_platform{{ end }}_{{ with .Values.siteController.deployment.metrics.subsystem }}{{ . }}{{else}}site_controller{{ end }}_unleased_pending_import_count"
valueLocation: "
{{ with .Values.siteController.deployment.metrics.namespace }}{{ . }}_{{ end }}{{ with .Values.siteController.deployment.metrics.subsystem }}{{ . }}_{{ end }}unleased_pending_import_count"
{{- else }}
apiVersion: apps/v1
kind: Deployment
Expand Down

0 comments on commit 64f59dc

Please sign in to comment.