Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from alimli/master
Browse files Browse the repository at this point in the history
Fixed incorrect Collector key_labels template
  • Loading branch information
lrk authored Oct 30, 2020
2 parents 817506d + 1e4a1a5 commit d317a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/collector_file.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metrics:
type: {{ metric.type | default('counter') }}
help: '{{ metric.help | default('') }}'
{% if metric.key_labels is defined and metric.key_labels != None %}
key_labels: {{ metric.key_labels | join(',')}}
key_labels: [{{ metric.key_labels | default([]) | join(',')}}]
{% endif %}
{% if metric.value_label is defined and metric.value_label != None %}
value_label: {{ metric.value_label }}
Expand Down

0 comments on commit d317a8b

Please sign in to comment.