Raphael Taylor-Davies
f9178dbb5f
feat: push metrics into catalog ( #1488 )
...
* feat: push metrics into catalog
* chore: minor cleanup
* fix: include db labels in chunk metric domains
* chore: fmt
* fix: don't allow dropping moving chunks
* chore: further tweaks
* chore: review feedback
* feat: use new_unregistered() for metric instruments instead of default
* chore: use &[KeyValue] instead of &Vec<KeyValue>
* refactor: make GauageValue non default constructible
2021-05-14 17:37:39 +00:00
Raphael Taylor-Davies
4409d2c8af
feat: instrument catalog locks ( #1464 )
...
* feat: instrument catalog locks (#1355 )
* chore: add metrics test
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-05-11 18:59:11 +00:00
Raphael Taylor-Davies
e00b4aaa24
feat: associate labels with a domain ( #1463 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-05-11 13:03:45 +00:00
Raphael Taylor-Davies
e2e3c9f77c
feat: workaround bug/limitation in OT handling of observers ( #1457 )
...
* feat: workardound bug/limitation in OT handling of observers
* chore: fix lints
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-05-07 18:53:28 +00:00
Carol (Nichols || Goulding)
febc1538ff
chore: Update Rust version ( #1445 )
...
* chore: Update Rust version
* refactor: Make struct constructor field orderings consistent
Sometimes I changed the struct definition, sometimes changed the struct
construction instance, depending on consistency with code around each
(other similar structs, function argument orders, etc)
More info: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_struct_constructor
* refactor: Use flatten where appropriate
One instance is a false positive with a clippy bug.
More info:
- https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_identity
- https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten
* refactor: Use Option map instead of match
More info: https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-05-06 22:07:10 +00:00
Raphael Taylor-Davies
49c0b8b90c
feat: pull-based metrics ( #1355 ) ( #1414 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-05-06 15:54:30 +00:00
Raphael Taylor-Davies
7e2e2c4caf
refactor: initial split of observability_deps ( #1429 )
2021-05-06 08:25:09 +00:00
Marko Mikulicic
73700d767a
feat: Add user provided callback to Gauge
2021-04-30 17:22:52 +02:00
Edd Robinson
028e7f2aa6
refactor: change gauge to f64
2021-04-30 14:32:00 +01:00
Edd Robinson
778bf39705
feat: add support for add/sub on gauges
2021-04-30 14:28:16 +01:00
Marko Mikulicic
234c899631
feat: Add gauge metric
2021-04-30 14:10:42 +02:00
Marko Mikulicic
8da332c19c
docs: Fix typo in comment
2021-04-29 23:38:09 +02:00
Edd Robinson
ea476c86be
feat: add chunk size histogram
2021-04-29 17:10:57 +01:00
Edd Robinson
8ea0d60cae
refactor: return Arc
2021-04-29 14:00:05 +01:00
Edd Robinson
bc359821e3
feat: allow histogram metrics to be registered
2021-04-28 20:49:11 +00:00
Edd Robinson
ccec8f2ca8
test: add histogram test assertions
2021-04-28 20:49:11 +00:00
Edd Robinson
a66f50949a
feat: add new Histogram metric
2021-04-28 20:49:11 +00:00
Marko Mikulicic
2bbfd1d007
fix: Histogram boundaries are durations not percentiles
2021-04-27 15:19:09 +02:00
Marco Neumann
eddc9319ff
docs: deny broken intradoc links
2021-04-27 13:22:28 +02:00
Edd Robinson
cd7df48718
refactor: apply suggestions from code review
...
Co-authored-by: Dom <dom@itsallbroken.com>
Co-authored-by: Jake Goulding <jake.goulding@integer32.com>
2021-04-23 15:58:48 +00:00
Edd Robinson
eacfe9af6a
refactor: address PR feedback
2021-04-23 15:58:48 +00:00
Edd Robinson
14ee33b523
refactor: apply suggestions from code review
...
Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>
2021-04-23 15:58:48 +00:00
Edd Robinson
5dea3c6146
refactor: PR feedback
2021-04-23 15:58:48 +00:00
Edd Robinson
d3218802ab
refactor: more API metric coverage
2021-04-23 15:58:48 +00:00
Edd Robinson
87de656d23
feat: metrics test helpers
2021-04-23 15:58:48 +00:00
Edd Robinson
c596910425
refactor: remove old metrics
2021-04-23 15:58:48 +00:00
Edd Robinson
97b2369140
refactor: swap existing metrics for THE NEW WAY
2021-04-23 15:58:48 +00:00
Edd Robinson
f7271f73b6
feat: add counter metric
2021-04-23 15:58:48 +00:00
Edd Robinson
1396b86a6f
refactor: tidy up labels
2021-04-23 15:58:48 +00:00
Edd Robinson
71016a7726
refactor: implement Default
2021-04-23 15:58:48 +00:00
Dom
9cdf652453
refactor: initialise per-instance registries
...
Removes the reliance on the global meter registry, avoiding shared
global state. Instead, each MetricRegistry instance contains it's own
Prometheus registry/exporter and OpenTelemetry collector/meter provider.
2021-04-23 15:58:48 +00:00
Edd Robinson
ea909f45ad
feat: RED metrics
2021-04-23 15:58:48 +00:00