|
82 | 82 | ## Log only error level messages. |
83 | 83 | {{ config.agent | manala.roles.toml_parameter('quiet', default=false, comment=true) }} |
84 | 84 |
|
85 | | - ## Log target controls the destination for logs and can be one of "file", |
86 | | - ## "stderr" or, on Windows, "eventlog". When set to "file", the output file |
87 | | - ## is determined by the "logfile" setting. |
88 | | - {{ config.agent | manala.roles.toml_parameter('logtarget', default='file', comment=true) }} |
| 85 | + ## Log format controls the way messages are logged and can be one of "text", |
| 86 | + ## "structured" or, on Windows, "eventlog". |
| 87 | + {{ config.agent | manala.roles.toml_parameter('logformat', default='text', comment=true) }} |
89 | 88 |
|
90 | | - ## Name of the file to be logged to when using the "file" logtarget. If set to |
91 | | - ## the empty string then logs are written to stderr. |
| 89 | + ## Message key for structured logs, to override the default of "msg". |
| 90 | + ## Ignored if `logformat` is not "structured". |
| 91 | + {{ config.agent | manala.roles.toml_parameter('structured_log_message_key', default='message', comment=true) }} |
| 92 | + |
| 93 | + ## Name of the file to be logged to or stderr if unset or empty. This |
| 94 | + ## setting is ignored for the "eventlog" format. |
92 | 95 | {{ config.agent | manala.roles.toml_parameter('logfile', default='', comment=true) }} |
93 | 96 |
|
94 | 97 | ## The logfile will be rotated after the time interval specified. When set |
|
109 | 112 | {{ config.agent | manala.roles.toml_parameter('log_with_timezone', default='', comment=true) }} |
110 | 113 |
|
111 | 114 | ## Override default hostname, if empty use os.Hostname() |
112 | | - {{ config.agent | manala.roles.toml_parameter('hostname', default='') }} |
| 115 | + {{ config.agent | manala.roles.toml_parameter('hostname', default='', comment=true) }} |
113 | 116 | ## If set to true, do no set the "host" tag in the telegraf agent. |
114 | | - {{ config.agent | manala.roles.toml_parameter('omit_hostname', default=false) }} |
| 117 | + {{ config.agent | manala.roles.toml_parameter('omit_hostname', default=false, comment=true) }} |
115 | 118 |
|
116 | 119 | ## Method of translating SNMP objects. Can be "netsnmp" (deprecated) which |
117 | 120 | ## translates by calling external programs snmptranslate and snmptable, |
|
123 | 126 | ## stateful plugins on termination of Telegraf. If the file exists on start, |
124 | 127 | ## the state in the file will be restored for the plugins. |
125 | 128 | {{ config.agent | manala.roles.toml_parameter('statefile', default='', comment=true) }} |
| 129 | + |
| 130 | + ## Flag to skip running processors after aggregators |
| 131 | + ## By default, processors are run a second time after aggregators. Changing |
| 132 | + ## this setting to true will skip the second run of processors. |
| 133 | + {{ config.agent | manala.roles.toml_parameter('skip_processors_after_aggregators', default=false, comment=true) }} |
0 commit comments