Skip to content

Commit

Permalink
Set missing default value for enable_metering (#2332)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Jul 25, 2024
1 parent 593633b commit 3230acf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sinks:
- name: event_sink # 'The name of the sink we want to refere to.'
publishers: # 'The list of targets we want to push to.'
- notifier://
{% if enable_metering | bool %}
{% if enable_metering | default(false) | bool %}
- http://{{ ceilometer_metering_pushgateway_host }}:{{ ceilometer_metering_pushgateway_port }}/post_json
{% endif %}

2 changes: 1 addition & 1 deletion environments/kolla/files/overlays/ceilometer/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ sinks:
- prometheus://{{ ceilometer_prometheus_pushgateway_host }}:{{ ceilometer_prometheus_pushgateway_port }}/metrics/job/openstack-telemetry{% if ceilometer_prometheus_pushgateway_options %}/?{{ (ceilometer_prometheus_pushgateway_options | dict2items | rejectattr("value", "equalto", None) | list | items2dict).items() | map("join", "=") | join("&")}}{% endif %}
{% endif %}

{% if enable_metering | bool %}
{% if enable_metering | default(false) | bool %}
- http://{{ ceilometer_metering_pushgateway_host }}:{{ ceilometer_metering_pushgateway_port }}/post_json
{% endif %}

0 comments on commit 3230acf

Please sign in to comment.