File: timer.mtail

package info (click to toggle)
mtail 3.2.24-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,384 kB
  • sloc: yacc: 647; makefile: 226; sh: 78; lisp: 77; awk: 17
file content (7 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
# `timer` is the same as gauge but has special meaning for statsd export.
# Otherwise just use a gauge.
timer request_time_ms by vhost

/(?P<vhost>\S+) (?P<latency_s>\d+)/ {
  request_time_ms[$vhost] = $latency_s / 1000
}