1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
|
## Changes Between 2.8.0 and 2.9.0 (unreleased)
### InfluxDB Reporter Option Renamed
The misspelled `:group-guages` option was renamed to `:group-gauges`.
Contributed by Pierre-Yves Ritschard.
### Reflection Fixes
Contributed by Pierre-Yves Ritschard.
## Changes Between 2.7.0 and 2.8.0 (Dec 28th, 2016)
### Updated Dependencies
Contributed by Pierre-Yves Ritschard.
### InfluxDB Reporter
Contributed by Andrew Jones.
## Changes Between 2.6.0 and 2.7.0 (June 1st, 2016)
### Functions for Working with Reservoirs
Ning Sun contributed several new functions that instantiate
various reservoir types:
* `metrics.core/uniform-reservior`
* `metrics.core/exponentially-decaying-reservoir`
* `metrics.core/sliding-time-window-reservoir`
* `metrics.core/sliding-window-reservoir`
and a few more.
GH issue: [#104](https://github.com/sjl/metrics-clojure/pull/104)
### Easier to Retrieve Metrics
Ning Sun contributed several new functions that retrieve different
type of metrics from a registry:
* `metrics.core/meters`
* `metrics.core/histograms`
* `metrics.core/timers`
* `metrics.core/gauges`
* `metrics.core/counters`
GH issue: [#102](https://github.com/sjl/metrics-clojure/pull/102)
### Updated Dependencies
Contributed by Pierre-Yves Ritschard.
## Changes Between 2.5.0 and 2.6.0 (Nov 30th, 2015)
### Riemann Reporter
Contribited by Ragnar Dahlén.
### DropWizard Metrics Upgrade
DropWizard Metrics was upgraded to `3.1.2`.
Contributed by Matthias Nüßler.
### Cheshire Upgrade
Cheshire was upgraded to `5.5.0`.
Contributed by Shantanu Kumar.
### Predicate-based Metric Removal
`metrics.core/remove-metrics` is a new function that removes
metrics based on a predicate.
Contributed by Vincent Bernat.
### Infinite Recursion in Ganglia
Ganglia reporter had an infinite recursion.
GH issue: #71.
### Add support for timing expressions in core.async/go blocks
Added the macro `metrics.timers/start-stop-time` to enable timing expressions that include parking functions in `core.async/go` blocks.
Contributed by Wil Yegelwel.
## Changes Between 2.4.0 and 2.5.0
### Type Hints Use Fully-Qualified Names
Type hints across the libraries now use fully-qualified names, which means
returned types don't have to be imported in the caller namespaces.
Contributed by Jason Whitlark.
### :total Key In Timers
`metrics.timers/rate` return value now includes `:total`.
Contributed by Andrew Rudenko.
### Added remove-all-metrics function
`metrics-clojure` Now has a function to remove all existing metrics from a given registry.
Contributed by Jason Whitlark.
### Metrics 3.1.1
`metrics-clojure` is now based on [Metrics 3.1.1](https://github.com/dropwizard/metrics/issues/694#issuecomment-77668929).
Contributed by Jason Whitlark.
## Changes Between 2.3.0 and 2.4.0
### Metrics 3.1.0
`metrics-clojure` is now based on [Metrics 3.1.0](https://groups.google.com/forum/#!topic/metrics-user/zwzHnMBcAX4).
### Improve ring instrumentation.
`metrics-clojure-ring` now instruments the scheme of requests, (http or https).
Contributed by Jason Whitlark.
## Changes Between 2.2.x and 2.3.0
### Enhanced Timers
`metrics.timers` now provides two new functions, `start` and `stop`.
Contributed by Jason Whitlark.
### metrics.health
`metrics-clojure-health` is a new sub-project that makes implementing
[health checks](http://metrics.dropwizard.io/3.1.0/manual/healthchecks/) easier in Clojure.
Contributed by Jason Whitlark.
### Ganglia Reporter
`metrics-clojure-ganglia` is a new sub-project that makes using the Ganglia
reporter easier from Clojure.
Contributed by Jason Whitlark.
### CSV Reporter
CSV reporter is now provided in `metrics.reporters.csv`.
Contributed by Jason Whitlark.
### JMX Reporter
JMX reporter is now provided in `metrics.reporters.jmx`.
Contributed by Jason Whitlark.
### Stop Function for Reporter
All reporter namespace now provide a new function, `stop`, that stops
their respective reporter.
Contributed by Jason Whitlark.
### Graphite Reporter API in Line With the Console One
`metrics.reporters.graphite/start` is a function that starts the reporter,
just like other reporter namespaces (e.g. console) do.
Contributed by Jason Whitlark.
### Graphite and Console Reporters Documentation Improvements
Contributed by Jason Whitlark.
## Changes Between 2.1.x and 2.2.0
### Graphite Extension
`metrics.reporters.graphite` is a new sub-project that contains
a Graphite reporter.
### Ring Extension Now Respects User-provided Registry
The Ring extension now respects user-provided registries
instead of always using the default one.
Contributed by David Smith.
### Bugfixes
- Fixed `metrics.core/default-registry` to have a valid reflection
hint (no longer causes compile error when used in interop.) Fix
planned on 2.1.x as well. Contributed by Tim McCormack.
## Changes Between 2.0.x and 2.1.0
### Ring Extension Supports Multiple Registries and Options
It is now possible to use `metrics.ring.expose` with a custom
registry:
``` clojure
(require '[metrics.ring.expose :refer [expose-metrics-as-json]])
(expose-metrics-as-json ring-app "/ops/metrics" registry {:pretty-print? true})
```
### JVM Instrumentation Extension
The project now also has a JVM instrumentation extension that covers:
* Number of threads and their states
* GC stats, heap, off heap memory
* File descriptors
To enable full instrumenting, use
``` clojure
(require '[metrics.jvm.core :refer [instrument-jvm]])
(instrument-jvm metric-registry)
```
Contributed by John Cowie (ThoughtWorks).
### timers/mean Returns Value (Not Rate)
`metrics.timers/mean` now returns mean value (not rate)
of the timer.
Contributed by Steve Miner.
### Ring Extension Updated for 2.0
The Ring extension is now updated for Metrics core 2.0 API.
Contributed by John Cowie (ThoughtWorks).
## Changes Between 1.1.0 and 2.0.0
### Metrics Registries
`metrics-clojure` 1.x maintained a metrics registry in a dynamic var.
This approach makes the library a little easier for beginners but
also much harder to use in more sophisticated cases, e.g. in concurrent
applications or those that use a Component-like approach to
program structure.
As such, `metrics-clojure` 2.0+ makes metrics registry a required
explicit argument to most functions in the API:
``` clojure
(require '[metrics.meters :as meters])
;; with 1.x
(meters/rate-mean)
(meters/mark! 10)
;; with 2.0
(let [m (meters/meter ["test" "meters" "test-rate-mean-update-multiple"])]
(meters/rate-mean m)
(meters/mark! m 10))
```
The library maintains a default registry in `metrics.core/default-registry`
which tries to keep the `1.x` API as functional as possible but using
your own registry is encouraged.
To instantiate a registry, use `metrics.core/new-registry`:
``` clojure
(require '[metrics.core :as mtr])
(mtr/new-registry)
```
See [GH #19](https://github.com/sjl/metrics-clojure/issues/19) for
discussion.
### defgauge Restricted to Functions Only
In `metrics-clojure` 1.x, `metrics.gauges/defgauge` could accept
a function or a bunch of forms (body). In 2.0, it only accepts
a function. This is in part due to the new API structure but also
make the API more straightforward and works much better with explicit
registry management now advocated by the library.
### Nanoseconds Precision in Timers
Metrics 3.0 uses nanoseconds precision in timers.
### Upgrade to Metrics 3.0
Metrics 3.0 is now used internally by the library.
### Clojure 1.3 No Longer Supported
Clojure 1.3 is no longer supported by the library.
## Changes Between 1.0.0 and 1.1.0
### Support for TRACE, OPTION, CONNECT HTTP Verbs
Ring integration now tracks rates of requests that use TRACE, OPTION,
CONNECT, and non-standard HTTP verbs.
Contributed by Joe Littlejohn (Nokia).
### Clojure 1.6
The project now depends on `org.clojure/clojure` version `1.6.0`. It is
still compatible with Clojure 1.4 and if your `project.clj` depends on
a different version, it will be used, but 1.6 is the default now.
### Cheshire 5.3
The project now uses [Cheshire](https://github.com/dakrone/cheshire) 5.3.
|