Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deploy/stacks/observability/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# nvcf-observability-stack

Reusable Helmfile stack scaffold for self-hosted NVCF observability. It is
intended to be consumed by self-managed control-plane deployments and optional
standalone compute-plane deployments once the distribution wiring lands.
consumed by self-managed control-plane deployments and optional standalone
compute-plane deployments.

The stack can own:

Expand Down
26 changes: 25 additions & 1 deletion deploy/stacks/self-managed/environments/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,30 @@ global:
# global.observability.metrics.enabled
enabled: false

# Shared observability infrastructure. Self-managed control-plane installs keep
# this on because the function autoscaler depends on a populated TSDB.
observability:
mode: install

prometheusOperatorCrds:
# Disable this when the cluster already owns Prometheus Operator CRDs, such as
# through an existing kube-prometheus-stack install, to avoid CRD conflicts.
enabled: true

opentelemetryOperator:
enabled: true

controlPlaneCollector:
enabled: true

victoriaMetrics:
enabled: true

defaultMonitors:
enabled: true
controlPlane:
enabled: true

accounts:
limits:
maxFunctions: 10
Expand Down Expand Up @@ -277,7 +301,7 @@ addons:
enabled: false

stateMetrics:
enabled: false
enabled: true
# Disable ServiceMonitor for environments without Prometheus Operator
serviceMonitor:
enabled: false
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
environments:
default:
values:
- ../environments/base.yaml
- ../environments/{{ requiredEnv "HELMFILE_ENV" }}.yaml

---

{{- $observability := dig "observability" (dict) .Values }}
{{- $mode := dig "mode" "disabled" $observability }}
{{- if not (has $mode (list "install" "existing" "disabled")) }}
{{- fail (printf "observability.mode must be install, existing, or disabled, got %q" $mode) }}
{{- end }}
{{- if ne $mode "disabled" }}
helmfiles:
- path: ../../observability/helmfile.d/01-observability.yaml.gotmpl
selectorsInherited: true
values:
- global:
{{- toYaml (dig "global" (dict) .Values) | nindent 10 }}
- observability:
{{- toYaml $observability | nindent 10 }}
{{- range $key := list "prometheusOperatorCrds" "opentelemetryOperator" "controlPlaneCollector" "victoriaMetrics" "defaultMonitors" }}
{{- with (index $.Values $key) }}
- {{ $key }}:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}
{{- end }}
Loading