diff --git a/charts/opencost/Chart.yaml b/charts/opencost/Chart.yaml index b3e4b97..bdd0b70 100755 --- a/charts/opencost/Chart.yaml +++ b/charts/opencost/Chart.yaml @@ -9,7 +9,7 @@ keywords: - finops - monitoring - opencost -version: 2.5.28 +version: 2.5.29 maintainers: - name: jessegoodier - name: toscott diff --git a/charts/opencost/README.md b/charts/opencost/README.md index 5d8700d..79f3e58 100644 --- a/charts/opencost/README.md +++ b/charts/opencost/README.md @@ -78,6 +78,7 @@ $ helm install opencost opencost/opencost | opencost.exporter.apiIngress.tls | list | `[]` | Ingress TLS configuration | | opencost.exporter.apiPort | int | `9003` | | | opencost.exporter.aws.access_key_id | string | `""` | AWS secret key id | +| opencost.exporter.aws.riSpRefreshRateHours | int | `1` | Number of hours between refreshes of Reserved Instance and Savings Plan data from Athena. Defaults to 1 (hourly). For multi-cluster deployments sharing a single CUR export, raise this (e.g. 24) to reduce Athena scan cost. | | opencost.exporter.aws.secret_access_key | string | `""` | AWS secret access key | | opencost.exporter.cloudProviderApiKey | string | `""` | The GCP Pricing API requires a key. This is supplied just for evaluation. | | opencost.exporter.collectorDataSource.enabled | bool | `false` | | diff --git a/charts/opencost/templates/deployment.yaml b/charts/opencost/templates/deployment.yaml index 76b417f..690075f 100644 --- a/charts/opencost/templates/deployment.yaml +++ b/charts/opencost/templates/deployment.yaml @@ -325,6 +325,8 @@ spec: value: {{ .Values.opencost.cloudCost.queryWindowDays | quote }} - name: CLOUD_COST_RUN_WINDOW_DAYS value: {{ .Values.opencost.cloudCost.runWindowDays | quote }} + - name: AWS_RI_SP_REFRESH_RATE_HOURS + value: {{ .Values.opencost.exporter.aws.riSpRefreshRateHours | quote }} {{- if not (quote .Values.opencost.metrics.kubeStateMetrics.emitPodAnnotations | empty ) }} - name: EMIT_POD_ANNOTATIONS_METRIC value: {{ .Values.opencost.metrics.kubeStateMetrics.emitPodAnnotations | quote }} diff --git a/charts/opencost/values.yaml b/charts/opencost/values.yaml index cd81696..e06220c 100644 --- a/charts/opencost/values.yaml +++ b/charts/opencost/values.yaml @@ -173,7 +173,8 @@ opencost: # "athenaTable": "AWS_cloud_integration_athenaTable", # "projectID": "AWS_cloud_integration_athena_projectID", # "serviceKeyName": "AWS_cloud_integration_athena_serviceKeyName", - # "serviceKeySecret": "AWS_cloud_integration_athena_serviceKeySecret" + # "serviceKeySecret": "AWS_cloud_integration_athena_serviceKeySecret", + # "resultReuseMaxAgeMinutes": 60 # } # ], # "azure": [ @@ -435,6 +436,8 @@ opencost: secret_access_key: "" # -- AWS secret key id access_key_id: "" + # -- Number of hours between refreshes of Reserved Instance and Savings Plan data from Athena. Defaults to 1 (hourly). For multi-cluster deployments sharing a single CUR export, raise this (e.g. 24) to reduce Athena scan cost. + riSpRefreshRateHours: 1 # -- A list of volume mounts to be added to the pod extraVolumeMounts: [] # -- List of additional environment variables to set in the container