Skip to content

Commit

Permalink
Make metrics optional
Browse files Browse the repository at this point in the history
Add a variable `casd_metrics_enabled` to allow for metrics to be
disabled.

Change the default metrics interval to match the upstream buildbox-casd
value of 15 seconds.
  • Loading branch information
sdclarke committed Sep 25, 2024
1 parent e403fce commit b9ae7ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ casd_log_driver: ""
casd_log_options: {}

# casd metrics
casd_metrics_enabled: true
# Must be one of udp://<statsd_server>:<port>, file://<path> or stderr
casd_metrics_mode: "stderr"
casd_metrics_publish_interval_secs: 5
casd_metrics_publish_interval_secs: 15
casd_metrics_prefix: ""
casd_metrics_args: >-
--metrics-mode {{ casd_metrics_mode }}
Expand All @@ -42,7 +43,8 @@ casd_cmd: >-
{% if casd_loglevel %}--log-level {{ casd_loglevel }}{% endif %}
{% if casd_quota_high %}--quota-high {{ casd_quota_high }}{% endif %}
{% if casd_reserved %}--reserved {{ casd_reserved }}{% endif %}
{{ casd_metrics_args }} {{ casd_proxy_cas_args }} {{ casd_proxy_ac_args }}
{% if casd_metrics_enabled %}{{ casd_metrics_args }}{% endif %}
{{ casd_proxy_cas_args }} {{ casd_proxy_ac_args }}
{{ casd_proxy_asset_args }} {{ casd_proxy_execution_args }} {{ casd_cache_mnt }}
casd_default_mounts:
- "{{ casd_cache }}:{{ casd_cache_mnt }}"
Expand Down

0 comments on commit b9ae7ae

Please sign in to comment.