mtc
Metrics, telemetry, Prometheus, statsd.
Load with: use mtc
Quick example
use mtc
result = mtccn("value", 10, "value")
prn(result)
Functions
Registry
mtcrg()
Performs the operation.
Counter
mtccn(r, nm, lbl)
Performs the operation. Takes r, nm, lbl.
mtcic(m, v)
Performs the operation. Takes m, v.
Gauge
mtcgg(r, nm, lbl)
Performs the operation. Takes r, nm, lbl.
mtcst(m, v)
Sets a value or starts a process. Takes m, v.
mtcic(m, v)
Performs the operation. Takes m, v.
mtcdc(m, v)
Performs the operation. Takes m, v.
Histogram
mtchm(r, nm, buc, lbl)
Performs the operation. Takes r, nm, buc, lbl.
mtchs(m, v)
Performs the operation. Takes m, v.
Summary
mtcsm(r, nm, lbl)
Performs the operation. Takes r, nm, lbl.
mtcsb(m, v)
Performs the operation. Takes m, v.
Timer helper
mtctm(r, nm, lbl)
Performs the operation. Takes r, nm, lbl.
mtcen(t)
Encodes. Takes t.
Export Prometheus
mtcpr(r)
Processes or prints. Takes r.
mtcnm(nm, lbl)
Performs the operation. Takes nm, lbl.
mtcky(nm, lbl)
Performs the operation. Takes nm, lbl.
StatsD
mtcsd(ho, pt)
Performs the operation. Takes ho, pt.
mtcs1(c)
Performs the operation. Takes c.
mtcs0(c, nm, v)
Performs the operation. Takes c, nm, v.
mtcsg(c, nm, v)
Performs the operation. Takes c, nm, v.
mtcsh(c, nm, v)
Performs the operation. Takes c, nm, v.
Middleware
mtchd(rg, nm)
Performs the operation. Takes rg, nm.
Health check
mtchl(rg)
Performs the operation. Takes rg.
Notes
- Metrics collection - counters, gauges, histograms.