|
35 | 35 | ## Each plugin will sleep for a random time within jitter before collecting. |
36 | 36 | ## This can be used to avoid many plugins querying things like sysfs at the |
37 | 37 | ## same time, which can have a measurable effect on the system. |
38 | | - collection_jitter = "0s" |
| 38 | + collection_jitter = "20s" |
39 | 39 |
|
40 | 40 | ## Collection offset is used to shift the collection by the given amount. |
41 | 41 | ## This can be be used to avoid many plugins querying constraint devices |
|
71 | 71 | ## Log target controls the destination for logs and can be one of "file", |
72 | 72 | ## "stderr" or, on Windows, "eventlog". When set to "file", the output file |
73 | 73 | ## is determined by the "logfile" setting. |
74 | | - # logtarget = "file" |
| 74 | + logtarget = "file" |
75 | 75 |
|
76 | 76 | ## Name of the file to be logged to when using the "file" logtarget. If set to |
77 | 77 | ## the empty string then logs are written to stderr. |
78 | | - # logfile = "" |
| 78 | + logfile = "${VERBOSE_LOG_FILE_FULL_PATH:-}" |
79 | 79 |
|
80 | 80 | ## The logfile will be rotated after the time interval specified. When set |
81 | 81 | ## to 0 no time based rotation is performed. Logs are rotated only when |
|
84 | 84 |
|
85 | 85 | ## The logfile will be rotated when it becomes larger than the specified |
86 | 86 | ## size. When set to 0 no size based rotation is performed. |
87 | | - # logfile_rotation_max_size = "0MB" |
| 87 | + logfile_rotation_max_size = "4MB" |
88 | 88 |
|
89 | 89 | ## Maximum number of rotated archives to keep, any older logs are deleted. |
90 | 90 | ## If set to -1, no archives are removed. |
91 | | - # logfile_rotation_max_archives = 5 |
| 91 | + logfile_rotation_max_archives = 5 |
92 | 92 |
|
93 | 93 | ## Pick a timezone to use when logging or type 'local' for local time. |
94 | 94 | ## Example: America/Chicago |
|
111 | 111 | # statefile = "" |
112 | 112 |
|
113 | 113 | [[inputs.outbound_connectivity]] |
114 | | - urls = [] |
115 | | - timeout_in_seconds = 30 |
| 114 | + interval = "${OUTBOUND_CONNECTIVITY_INTERVAL:-180s}" |
| 115 | + urls = "${OUTBOUND_CONNECTIVITY_URLS:-}" |
| 116 | + timeout_in_milliseconds = ${OUTBOUND_CONNECTIVITY_TIMEOUT_IN_MILLISECONDS:-30000} |
116 | 117 |
|
117 | 118 | [[inputs.disk_io]] |
118 | | - drives = [] |
| 119 | + interval = "${DISK_IO_INTERVAL:-180s}" |
| 120 | + drives = "${DISK_IO_DRIVES:-}" |
| 121 | + fileName = "${DISK_IO_FILENAME:-}" |
119 | 122 |
|
120 | 123 | [[inputs.simple]] |
121 | | - ok = true |
122 | | - interval = "10s" |
| 124 | + interval = "${SIMPLE_INTERVAL:-10s}" |
| 125 | + ok = ${SIMPLE_OK:-true} |
| 126 | + |
| 127 | +[[inputs.az_storage_blob]] |
| 128 | + interval = "${AZ_STORAGE_BLOB_INTERVAL:-180s}" |
| 129 | + storage_account_name = "${AZ_STORAGE_ACCOUNT_NAME:-xstoreverifier}" |
| 130 | + container_name = "${AZ_STORAGE_CONTAINER_NAME:-xstoreverifier}" |
| 131 | + blob_name = "${AZ_BLOB_NAME:-VMAAgentTestBlobNew.txt}" |
| 132 | + sas_token_base64 = "${AZ_STORAGE_SAS_TOKEN_BASE64:-c3A9ciZzdD0yMDIxLTA4LTAyVDIwOjEyOjExWiZzZT0yMDk5LTA4LTAzVDA0OjEyOjExWiZzcHI9aHR0cHMmc3Y9MjAyMC0wOC0wNCZzcj1iJnNpZz10aXBBUjV0dXN6N044N1IxWGpra1M4bWlrUHZma3RHMmtVZWo3MmRCVDdFJTNE}" |
| 133 | + |
| 134 | +[[inputs.clockskew]] |
| 135 | + interval = "${CLOCK_SKEW_INTERVAL:-180s}" |
| 136 | + ntp_server = "${CLOCK_SKEW_NTP_SERVER:-time.windows.com}" |
| 137 | + time_skew_threshold_in_seconds = ${CLOCK_SKEW_TIME_SKEW_THRESHOLD_IN_SECONDS:-5.0} |
123 | 138 |
|
124 | 139 | # Send telegraf metrics to file(s) |
125 | 140 | [[outputs.file]] |
126 | 141 | flush_interval = "30s" |
127 | 142 | ## Files to write to, "stdout" is a specially handled file. |
128 | | - #folder = "/Users/mizhe/tmporary" |
129 | | - #folder = "stdout" |
130 | | - folder = "/var/log/azure/Microsoft.ManagedServices.ApplicationHealthLinux/events" |
| 143 | +# folder = "/Users/mizhe/tmporary" |
| 144 | + folder = "${SIGNAL_FOLDER:-stdout}" |
131 | 145 |
|
132 | 146 | ## Use batch serialization format instead of line based delimiting. The |
133 | 147 | ## batch format allows for the production of non line based output formats and |
|
148 | 162 | ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md |
149 | 163 | data_format = "json" |
150 | 164 | json_timestamp_format = "2006-01-02T15:04:05Z07:00" |
| 165 | + json_nested_fields_include = ["RuntimeParameters"] |
151 | 166 | json_transformation = ''' |
152 | 167 | metrics.$merge([{"Timestamp": timestamp, "Message": $string(fields)}, tags]) |
153 | 168 | ''' |
|
0 commit comments