Skip to content

Commit

Permalink
fix(agent): use dig function for prometheus_exporter settings check (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aroberts87 authored Aug 2, 2024
1 parent 2287375 commit b193d65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ sources:
- https://app.sysdigcloud.com/#/settings/user
- https://github.com/draios/sysdig
type: application
version: 1.27.14
version: 1.27.15
4 changes: 2 additions & 2 deletions charts/agent/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ spec:
- name: SSL_CERT_FILE
value: /opt/draios/certificates/{{- include "sysdig.custom_ca.keyName" (dict "global" .Values.global.ssl "component" .Values.ssl) -}}
{{- end }}
{{- if and (hasKey .Values.sysdig.settings "prometheus_exporter") (.Values.sysdig.settings.prometheus_exporter.enabled) }}
{{- if dig "prometheus_exporter" "enabled" false .Values.sysdig.settings }}
ports:
- containerPort: {{ regexFind "[0-9]+$" (default "0.0.0.0:9544" .Values.sysdig.settings.prometheus_exporter.listen_url) }}
- containerPort: {{ regexFind "[0-9]+$" (dig "prometheus_exporter" "listen_url" "0.0.0.0:9544" .Values.sysdig.settings) }}
name: metrics
{{- end }}
readinessProbe:
Expand Down

0 comments on commit b193d65

Please sign in to comment.