mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-06-22 10:18:09 +02:00
Escape Go-template placeholders from Jinja in telegraf.conf
This commit is contained in:
@@ -109,10 +109,12 @@
|
|||||||
fields_as_jsonb = true
|
fields_as_jsonb = true
|
||||||
# Every metric table is a daily time-range partitioned parent managed by
|
# Every metric table is a daily time-range partitioned parent managed by
|
||||||
# pg_partman. Retention drops old partitions instead of row-by-row DELETEs.
|
# pg_partman. Retention drops old partitions instead of row-by-row DELETEs.
|
||||||
|
{% raw %}
|
||||||
create_templates = [
|
create_templates = [
|
||||||
'''CREATE TABLE {{ .table }} ({{ .columns }}) PARTITION BY RANGE ("time")''',
|
'''CREATE TABLE {{ .table }} ({{ .columns }}) PARTITION BY RANGE ("time")''',
|
||||||
'''SELECT partman.create_parent(p_parent_table := {{ .table|quoteLiteral }}, p_control := 'time', p_type := 'range', p_interval := '1 day', p_premake := 3)'''
|
'''SELECT partman.create_parent(p_parent_table := {{ .table|quoteLiteral }}, p_control := 'time', p_type := 'range', p_interval := '1 day', p_premake := 3)'''
|
||||||
]
|
]
|
||||||
|
{% endraw %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user