{"repo":"heroku/instruments","free":true,"listed":false,"github":"https://github.com/heroku/instruments","clone":"git clone https://github.com/heroku/instruments.git","description":"Collecting metrics over discrete time intervals","language":"Go","stars":112,"topics":["metrics","interval","go"],"license":"MIT","category":"analytics","readme_excerpt":"Instruments Instruments allows you to collects metrics over discrete time intervals. Collected metrics will only reflect observations from last time window only, rather than including observations from prior windows, contrary to EWMA based metrics. Installation Download and install: Add it to your code: Usage Instruments Instruments support two types of instruments: Discrete instruments return a single value, and Sample instruments a sorted array of values. These base instruments are available: - Counter: a simple counter. - Rate: tracks the rate of values per seconds. - Reservoir: randomly samples values. - Derive: tracks the rate of values based on the delta with previous value. - Gauge: tracks last value. - Timer: tracks durations. You can create custom instruments or compose new instruments form the built-in instruments as long as they implements the Sample or Discrete interfaces. Reporters Registry enforce the Discrete and Sample interfaces, creating a custom Reporter should be trivial, for example: See also Instrumentation by Composition Go Metrics Interval metrics","default_branch":null,"files":null,"tree":[],"storefront":"/r/heroku","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/heroku/instruments/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}