Skip to content

Commit bae3bad

Browse files
authored
Merge pull request #48 from vantage-sh/andy/20250429/add-polling-interval
feat: Adds the polling interval parameter to the template.
2 parents c8cc6cd + 8899200 commit bae3bad

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

charts/vantage-kubernetes-agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ apiVersion: v2
22
name: vantage-kubernetes-agent
33
description: Provisions the Vantage Kubernetes agent.
44
type: application
5-
version: 1.1.1
5+
version: 1.1.2
66
appVersion: "1.0.28"
77
icon: "https://assets.vantage.sh/www/vantage_avatar-social.jpg"

charts/vantage-kubernetes-agent/templates/application.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ spec:
139139
- name: VANTAGE_PERSIST_DIR
140140
value: "{{ .mountPath }}"
141141
{{- end }}
142+
{{- with .Values.agent.pollingInterval }}
143+
- name: VANTAGE_POLLING_INTERVAL
144+
value: "{{ . }}"
145+
{{- end }}
142146
ports:
143147
- name: {{ .Values.service.name }}
144148
containerPort: {{ .Values.service.port }}

charts/vantage-kubernetes-agent/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@
7777
},
7878
"volumesMounts": {
7979
"type": "array"
80+
},
81+
"pollingInterval": {
82+
"type": "integer"
8083
}
8184
}
8285
},

charts/vantage-kubernetes-agent/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ agent:
4444
# Optional. URL of an HTTP proxy used for external communications during the periodic report. This includes HTTP requests to the Vantage API and AWS S3. ie. http://example.com:3001
4545
reportHTTPProxy: ""
4646

47+
# Optional. Number of seconds between scrapes of the kubelet metrics endpoint. Values are 60, 30, 15, 10, or 5
48+
pollingInterval: 60
49+
4750
gpu:
4851
# Optional. Whether the agent should scrape GPU metrics or not. Requires NVIDIA dcgm-exporter to be deployed and configured with DCGM_FI_DEV_FB_USED and DCGM_FI_DEV_FB_TOTAL
4952
usageMetrics: false

0 commit comments

Comments
 (0)