Matthias Rampke
7188ed4292
Add more tests for gauge increment/decrement
...
Validate the behavior for relative gauge events as per [the statsd type metric type documentatoin](https://github.com/statsd/statsd/blob/master/docs/metric_types.md#gauges ).
Reaffirms #523 .
Signed-off-by: Matthias Rampke <matthias@prometheus.io>
2024-01-15 22:44:07 +01:00
Sebastian Rabenhorst
4392beadc3
Added config to honor labels in mappings
...
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
2023-11-02 14:15:07 +01:00
kullanici0606
c246633aec
add counter for dropped UDP packets. Remove unnecessary and misleading comment
...
Signed-off-by: kullanici0606 <yakup.turgut@btk.gov.tr>
2023-10-23 10:01:52 +03:00
Eddie Bracho
fdc8b5f852
Add scale
field to mapping config
...
This field allows configuring unit conversions in mappings. For example:
mappings:
- match: foo.latency_ms
name: foo_latency_seconds
scale: 0.001
- match: bar.processed_kb
name: bar_processed_bytes
scale: 1024
Signed-off-by: Eddie Bracho <eddiebracho@gmail.com>
2023-05-29 19:54:43 -07:00
Pedro Tanaka
83cec219c8
Checking conflict for gauges as well and refactoring into function
...
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
2022-08-29 08:51:09 +02:00
Pedro Tanaka
31b05ef232
Fixing typo
...
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
2022-08-26 11:58:41 +02:00
Pedro Tanaka
c41fa101f5
Bring back test cases after rebase problem
...
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
2022-08-26 11:57:57 +02:00
Pedro Tanaka
30c3e31574
Improving isolation of metric conflict test
...
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
2022-08-26 11:40:18 +02:00
akartasov
b60989291b
feat: enable more linters and fix warnings ( #364 )
...
Signed-off-by: akartasov <agneum@gmail.com>
2021-10-24 21:27:31 +07:00
davinlu
6329577a6b
refactor: replace level pkg
...
Signed-off-by: davinlu <davinlu@tencent.com>
2021-09-01 18:55:45 +08:00
Matthias Rampke
c4f435e140
Revert "replace level pkg"
2021-08-31 12:39:34 +02:00
royeo
c3a818ef62
replace level pkg
...
Signed-off-by: royeo <ljn6176@gmail.com>
2021-08-17 23:27:27 +08:00
John Howard
c5113b732c
Update dependencies and drop large go-kit update
...
Pulling in the same changes as done in
https://github.com/prometheus/common/issues/255
Signed-off-by: John Howard <howardjohn@google.com>
2021-06-03 08:00:27 -07:00
glightfoot
8b306c8c76
remove noop cache, add helper function for tests
...
Signed-off-by: glightfoot <glightfoot@rsglab.com>
2021-02-19 14:08:53 -05:00
glightfoot
940e653ea6
cleanup
...
Signed-off-by: glightfoot <glightfoot@rsglab.com>
2021-02-06 23:21:49 -05:00
glightfoot
0099df7f71
move lru and rr mapper caches to their own package and make mapper_cache a better an interface for implementing externally`
...
Signed-off-by: glightfoot <glightfoot@rsglab.com>
2021-02-06 22:50:17 -05:00
glightfoot
58aed41ff2
remove deprecated fields from mapper defaults config
...
Signed-off-by: glightfoot <glightfoot@rsglab.com>
2021-01-28 13:59:42 -05:00
Robert Fratto
b5deeda251
Pass around custom registry for registering exporter metrics
...
Importers of pkg/exporter may not want for series to be imported into
the default registry. This commit makes it possible to provide a custom
registry for metrics registration.
Signed-off-by: Robert Fratto <robertfratto@gmail.com>
2020-11-20 14:14:14 -05:00
bakins
4acb05aa89
Use an interface for Registry so we may have multiple implementations
...
Signed-off-by: bakins <brian@akins.org>
2020-10-22 10:08:57 -04:00
glightfoot
6942b5a4f3
move to line parser struct and option functions
...
Signed-off-by: glightfoot <glightfoot@rsglab.com>
2020-08-10 12:44:23 -04:00
glightfoot
77277a5150
support deprecated timer_type in configs
...
Signed-off-by: glightfoot <glightfoot@rsglab.com>
2020-06-15 18:41:16 -04:00
glightfoot
32e9e58e32
Rename timer to observer in mapper
...
Signed-off-by: glightfoot <glightfoot@rsglab.com>
2020-06-15 17:26:20 -04:00
glightfoot
d95a53553e
change metric labels to observer
...
Signed-off-by: glightfoot <glightfoot@rsglab.com>
2020-06-15 10:14:11 -04:00
glightfoot
374d202daa
rename TimerEvent to ObserverEvent
...
Signed-off-by: glightfoot <glightfoot@rsglab.com>
2020-06-12 09:25:51 -04:00
glightfoot
5c0b206f6e
add support for histograms and distributions without unit conversion
...
Signed-off-by: glightfoot <glightfoot@rsglab.com>
2020-06-11 10:56:36 -04:00
Frank Davidson
5ec58a32c2
squash! Updated structs and tests.
...
squash! Updated structs and tests.
Updated structs and tests.
Signed-off-by: Frank Davidson <davidfr@americas.manulife.net>
Signed-off-by: Frank Davidson <ffdavidson@gmail.com>
Signed-off-by: Frank Davidson <frank_davidson@manulife.com>
2020-04-09 11:44:13 -04:00
Frank Davidson
4b3b9ba207
Added license.
...
Signed-off-by: Frank Davidson <davidfr@americas.manulife.net>
Signed-off-by: Frank Davidson <ffdavidson@gmail.com>
2020-04-08 15:30:01 -04:00
Frank Davidson
16b6f95c96
removed ~
...
Signed-off-by: Frank Davidson <davidfr@americas.manulife.net>
Signed-off-by: Frank Davidson <ffdavidson@gmail.com>
2020-04-08 15:29:55 -04:00
Frank Davidson
a455a8ad64
hopefully now linux
...
Signed-off-by: Frank Davidson <davidfr@americas.manulife.net>
Signed-off-by: Frank Davidson <ffdavidson@gmail.com>
2020-04-08 15:29:54 -04:00
Frank Davidson
d55b42eabb
:Issue 234: Split into reusable packages.
...
Signed-off-by: Frank Davidson <frank_davidson@manulife.com>
Signed-off-by: Frank Davidson <ffdavidson@gmail.com>
2020-04-08 15:29:49 -04:00