{"repo":"mattrobenolt/go-metrics","free":true,"listed":false,"github":"https://github.com/mattrobenolt/go-metrics","clone":"git clone https://github.com/mattrobenolt/go-metrics.git","description":"Extremely fast and lightweight package for recording and exporting metrics in Prometheus exposition format.","language":"Go","stars":11,"topics":["fast","golang","prometheus","metrics","stats","histograms"],"license":"MIT","category":"analytics","readme_excerpt":"metrics Extremely fast and lightweight package for recording and exporting metrics in Prometheus exposition format. Heavily inspired and based on VictoriaMetrics/metrics. Features Very fast, very few allocations. Really. Optional expiring of unobserved metrics (TTL support) HTTP exporter Built-in runtime metrics collectors Easy Prometheus-like API No dependencies Behavior Notes Duplicate Registration : Registering the same metric name twice will panic. This is intentional to catch programming errors early during development. TTL/Expiration : Metrics created through SetVec with a TTL will automatically expire if not accessed. See TTL example. Quick Start Metric Types Counters (uint64/int64/float64) - Monotonically increasing values (e.g., request count, bytes sent) Gauges (uint64/int64/float64) - Values that can increase or decrease (e.g., memory usage, active connections) Histograms - Prometheus-like ( le label style) - VictoriaMetrics-like ( vmrange label style) [!NOTE] Summary type has not been implemented. Counter vs Gauge While this library allows both counter and gauge types to increment/decrement, you should follow Prometheus semantics: - Use Counters for values that only increase (resets to 0 on restart). Prometheus queries use rate() and increase() functions. - Use Gauges for current measurements that can go up or down. Despite the naming, Uint64 / Int64 / Float64 types can be used as gauges. Performance - mattware = this library - vm = github.com/VictoriaMetrics/metr","default_branch":null,"files":null,"tree":[],"storefront":"/r/mattrobenolt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mattrobenolt/go-metrics/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."}