Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP-24792: allow more configurable settings, increase default remote write timeout #137

Merged
merged 2 commits into from
Jan 15, 2025
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
13 changes: 13 additions & 0 deletions charts/cloudzero-agent/docs/releases/1.0.0-beta-9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## [Release 1.0.0-beta-9](https://github.com/Cloudzero/cloudzero-agent/compare/v0.0.28...v1.0.0-beta-9) (2025-01-15)

This release adds the ability to set the log level via the `insightsController.server.logging.level` field. Additionally, the interval in which data is written to the CloudZero platform and the timeout for writing data are configurable via `insightsController.server.send_interval` and `insightsController.server.send_timeout`, respectively. The default timeout is increased from `10s` to `1m`.

### Upgrade Steps
Upgrade using the following command:
```console
helm upgrade --install <RELEASE_NAME> cloudzero-beta/cloudzero-agent -n <NAMESPACE> --create-namespace -f configuration.example.yaml --version 1.0.0-beta-9
```

### Improvements
* **More Configurable Server Settings:** The log level, remote write interval, and remote write timeout are now configurable in the chart values. See the `insightsController.server` section in the `values.yaml` for more details.
* **Default Setting for Send Timeout:** The default remote write timeout is increased to `1m`, which allows for backfilling data from larger clusters.
6 changes: 4 additions & 2 deletions charts/cloudzero-agent/templates/cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,12 @@ data:
region: {{ .Values.region }}
cluster_name: {{ .Values.clusterName }}
host: {{ .Values.host }}
logging:
level: {{ .Values.insightsController.server.logging.level }}
remote_write:
send_interval: 1m
send_interval: {{ .Values.insightsController.server.send_interval }}
max_bytes_per_send: 500000
send_timeout: 10s
send_timeout: {{ .Values.insightsController.server.send_timeout }}
max_retries: 3
k8s_client:
timeout: 30s
Expand Down
4 changes: 4 additions & 0 deletions charts/cloudzero-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ insightsController:
port: 8443
read_timeout: 10s
write_timeout: 10s
send_timeout: 1m
send_interval: 1m
idle_timeout: 120s
logging:
level: info
healthCheck:
enabled: true
path: /healthz
Expand Down
Loading