-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(argus,csc): accept agent.conf customizations for collector (#78)
- Loading branch information
1 parent
524129a
commit ff684c0
Showing
8 changed files
with
149 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
|
||
{{- define "trimmed-collector-config-agentConf" -}} | ||
{{- $trimmedCollectorProps := list "jdbc" "perfmon" "wmi" "netapp" "esx" "xen" "mongo" "wineventlog" "snmptrap" "syslog"}} | ||
{{- $propList := list }} | ||
{{- range $val := $trimmedCollectorProps }} | ||
{{- $kv := dict}} | ||
{{- $_ := set $kv "key" (printf "collector.%s.enable" $val) }} | ||
{{- $_1 := set $kv "value" "false" }} | ||
{{- $propList = append $propList $kv }} | ||
trimmedCollectorAgentConf: | ||
{{- toYaml $propList | nindent 2 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "argus.fullname" . }}-collector | ||
namespace: {{ template "argus.namespace" . }} | ||
labels: | ||
{{- include "argus.labels" . | nindent 4 }} | ||
annotations: | ||
helm-chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
helm-revision: "{{ .Release.Revision }}" | ||
## keep value false as string, spinnaker's limitation, otherwise spinnaker fails to cast boolean to string | ||
strategy.spinnaker.io/versioned: "false" | ||
{{- include "argus.annotations" . | nindent 4 }} | ||
data: | ||
collector-conf.yaml: | | ||
agentConf: | ||
{{- if not .Values.collector.disableLightweightCollector }} | ||
{{- $abc := include "trimmed-collector-config-agentConf" . | fromYaml }} | ||
{{- get $abc "trimmedCollectorAgentConf" | toYaml | nindent 6 }} | ||
{{- end }} | ||
{{- toYaml .Values.collector.collectorConf.agentConf | nindent 6 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters