You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2023. It is now read-only.
template to render the data with (default "{{.Part}} {{.OrgId}} {{.Id}} {{.Name}} {{.Metric}} {{.Interval}} {{.Value}} {{.Time}} {{.Unit}} {{.Mtype}} {{.Tags}}")
185
+
-format-md string
186
+
template to render MetricData with (default "{{.Part}} {{.OrgId}} {{.Id}} {{.Name}} {{.Interval}} {{.Value}} {{.Time}} {{.Unit}} {{.Mtype}} {{.Tags}}")
187
+
-format-point string
188
+
template to render MetricPoint data with (default "{{.Part}} {{.MKey}} {{.Value}} {{.Time}}")
187
189
-prefix string
188
190
only show metrics that have this prefix
189
191
-substr string
@@ -202,56 +204,35 @@ Inspects what's flowing through kafka (in mdm format) and reports out of order d
202
204
* it sniffs points being added on a per-series (metric Id) level
203
205
* for every series, tracks the last 'correct' point. E.g. a point that was able to be added to the series because its timestamp is higher than any previous timestamp
204
206
* if for any series, a point comes in with a timestamp equal or lower than the last point correct point - which metrictank would not add unless it falls within the reorder buffer - it triggers an event for this out-of-order point
205
-
every event is printed using the specified format
207
+
every event is printed using the specified, respective format based on the message format
206
208
207
209
# Event formatting
208
210
Uses standard golang templating. E.g. {{field}} with these available fields:
209
-
.Head.subfield - head is last successfully added message
210
-
.Bad.subfield - Bad is the current point that could not be added (assuming no re-order buffer)
211
-
(subfield is any property of the out-of-order MetricData: Time OrgId Id Name Metric Interval Value Unit Mtype Tags and also these 2 extra fileds: Part (partition) and Seen (when the msg was consumed from kafka)
212
211
NumBad - number of failed points since last successful add
213
212
DeltaTime - delta between Head and Bad time properties in seconds (point timestamps)
214
213
DeltaSeen - delta between Head and Bad seen time in seconds (consumed from kafka)
214
+
.Head.* - head is last successfully added message
215
+
.Bad.* - Bad is the current point that could not be added (assuming no re-order buffer)
216
+
under Head and Bad, the following subfields are available:
217
+
Part (partition) and Seen (when the msg was consumed from kafka)
218
+
for MetricData, prefix these with Md. : Time OrgId Id Name Metric Interval Value Unit Mtype Tags
219
+
for MetricPoint, prefix these with Mp. : Time MKey Value
0 commit comments