Commit graph

309 commits

Author SHA1 Message Date
Brian Akins
df926ae85a Add yaml dependency 2017-03-12 19:46:36 -04:00
Julius Volz
03335d91cf Merge pull request #65 from GentlemanJ/master
Added increment/decrement support to Gauges
2017-03-10 12:27:02 +01:00
Justin Reid
9cd4b974e4 consensed if/else statement 2017-03-09 17:39:20 -07:00
Justin Reid
3efcef6229 Simplified inc/dec logic based on PR feedback.
There is no need to add the string to all event types as only Gauge
is compatible with inc/dec functionality.  Removed valueStr from all
events and added a simple boolean to the Gauge event instead
2017-03-09 17:35:29 -07:00
Justin Reid
7fc8727306 Added increment/decrement support to Gauges
Now passing the value as a string (with operation prefix) through to build event so that Listen() can modify the gauge metric appropriately
2017-03-09 15:50:06 -07:00
Ville Törhönen
446b7e6d44 Handle invalid mapping config files (#61)
* When a terminating newline is missing from the metric mapping configuration file, the last definition is not parsed at all. After this change the last 'METRIC_DEFINITION' in the file is equivalent to a newline (either between definitions or as the terminating newline).

* Update mapping, if we are reading the last line of the file. Otherwise we will append the mapping and lose the last label. Since we are updating the mapping in two different places a 'updateMapping' function was introduced.

* Added mapper test for config files without a terminating newline.

* Added another test case where multiple definitions are given without a final terminating newline.

* As suggested by @grobie, we should give an error when a terminating newline is missing. Updated tests accordingly.
2017-02-24 11:48:05 -04:00
Julius Volz
0285d7b4a7 Merge pull request #60 from prometheus/beorn7/meta
Replace AUTHORS.md by an updated MAINTAINERS.md
2017-02-16 21:12:29 +01:00
beorn7
109b5ad053 Replace AUTHORS.md by an updated MAINTAINERS.md 2017-02-16 20:19:09 +01:00
Tobias Schmidt
b1f3e6d7be Merge pull request #58 from nordicdyno/master
ListenAndServe now fails on exit
2017-02-11 17:23:29 -05:00
nordicdyno
6ac8203d40 http listener: log and fail on ListenAndServe error 2017-02-10 15:35:38 +03:00
Steve Durrheimer
5a9d2f996a Merge pull request #52 from prometheus/sdurrheimer-circle-use-base-image-for-tests
Use golang-builder base image for tests in CircleCI
2016-09-09 11:21:35 +02:00
Steve Durrheimer
c1f2d12554
circle: add tag v-prefix 2016-09-09 08:40:28 +02:00
Steve Durrheimer
24eab4e35a
Use golang-builder base image for tests in CircleCI 2016-09-09 08:34:16 +02:00
Tobias Schmidt
022c10fe0c Merge pull request #51 from prometheus/sdurrheimer-use-promu-default-go-version
Use promu default go version + use 1.6 tag for cicleci tests
2016-08-31 12:02:09 +02:00
Steve Durrheimer
8bf751d4e3
Use promu default go version + use 1.6 tag for cicleci tests 2016-08-31 08:05:49 +02:00
Tobias Schmidt
35828e29e9 Merge pull request #50 from Jimdo/drop_invalid_utf8
Skip metrics with invalid utf8
2016-07-27 16:53:34 -04:00
Ilya Margolin
237499eced Add a benchmark for handlePacket 2016-07-22 17:19:00 +02:00
Ilya Margolin
1fbc392800 Remove unintended changes 2016-07-21 17:55:47 +02:00
Ilya Margolin
bb4e42068f Skip metrics with invalid utf8 2016-07-20 20:27:23 +02:00
Tobias Schmidt
0c8b644ee1 Merge pull request #48 from haguenau/tolerate-broken-metrics
Tolerate more forms of broken lines from StatsD
2016-05-19 12:51:36 -04:00
David Haguenauer
56f65c4870 Don't panic on empty metric names or components
* Don't panic on empty metric names
* Don't panic on empty metric components
* Test tolerance the above kinds of broken StatsD lines
2016-05-19 12:43:35 -04:00
Steve Durrheimer
00f56b3809
Remove unused Makefile.COMMON file 2016-05-14 21:15:13 +02:00
Johannes 'fish' Ziemke
e00d9e84aa Merge pull request #45 from prometheus/fish/release-0.3.0
Release 0.3.0
2016-05-05 10:23:59 -07:00
Johannes 'fish' Ziemke
cc3025a1f9 Release 0.3.0 2016-05-05 19:23:31 +02:00
Ben Kochie
dcb67944be Merge pull request #46 from prometheus/sdurrheimer/fix-circleci-flanky-go-get
Fix CircleCI flanky go get
2016-05-05 06:52:44 -07:00
Steve Durrheimer
7a76b03aa7
Change the test docker image tag to match promu golang version 2016-05-05 13:11:05 +02:00
Steve Durrheimer
246008307f
Fix CircleCI problems during go get promu 2016-05-05 13:10:57 +02:00
Johannes 'fish' Ziemke
1710048a70 Merge pull request #44 from prometheus/fish/use-version-package
Use common/version and common/log packages
2016-05-04 14:36:27 -07:00
Johannes 'fish' Ziemke
03fde8f3ba Use common/version and common/log packages 2016-05-04 23:12:18 +02:00
Johannes 'fish' Ziemke
4d22a721eb Fix parameter to NewExporter in test 2016-05-03 23:45:48 +02:00
Johannes 'fish' Ziemke
61f4c6e926 Merge pull request #42 from prometheus/fish/new-build
New build process
2016-05-03 14:24:03 -07:00
Johannes 'fish' Ziemke
cdeb0c9743 Use promu/docker/circleci based release process 2016-05-03 23:08:02 +02:00
Johannes 'fish' Ziemke
e26a5e4728 Add Version variable 2016-05-03 20:25:42 +02:00
Johannes 'fish' Ziemke
1f1c0f7030 Merge pull request #43 from prometheus/fish/vendor-all-the-things
Vendor dependencies
2016-05-03 11:25:23 -07:00
Johannes 'fish' Ziemke
a78a6d2635 Vendor dependencies 2016-05-03 19:25:23 +02:00
Johannes 'fish' Ziemke
dd0b68f2d8 Merge pull request #41 from prometheus/fish/fix-metric-suffix
Drop _count suffix for loaded_mappings metric
2016-05-03 09:54:20 -07:00
Johannes 'fish' Ziemke
dacfb3f1be Drop _count suffix for loaded_mappings metric
This makes the naming consistent with our best pratices.
2016-05-03 18:51:16 +02:00
Johannes 'fish' Ziemke
8e43fc2654 Merge pull request #37 from prometheus/fish/remove-auto-suffixes
Make metric suffixes optional, expose unmapped events
2016-05-03 09:46:59 -07:00
Tobias Schmidt
ba9c37eb20 Merge pull request #40 from Jimdo/dogstats-extensions-squashed
Dogstats extensions squashed
2016-05-03 12:42:38 -04:00
Johannes 'fish' Ziemke
3d0ccb9ed5 Count events for which no mapping was found 2016-05-03 18:39:57 +02:00
Ilya Margolin
0b792e0be6 DogStatsD: review changes 2016-05-03 18:28:33 +02:00
Daniel Bonkowski
8f36baf045 sanitize tag keys
- add tests for edge cases
 - fix typo
2016-05-03 18:27:42 +02:00
Johannes 'fish' Ziemke
f031e30721 Add flag to disable metric type suffixes 2016-05-03 01:16:34 +02:00
Julius Volz
60dbb43e8a Merge pull request #36 from prometheus/increase-udp-buf
Increase receivable UDP datagram size to 65535 bytes.
2016-04-29 18:13:07 +02:00
Julius Volz
c9baaf5ba1 Increase receivable UDP datagram size to 65535 bytes.
Fixes https://github.com/prometheus/statsd_exporter/issues/35
2016-04-29 17:39:55 +02:00
Julius Volz
121026ae3d Merge pull request #33 from klobucar/warn-on-negative
Don't panic when negative number counter is submitted.
2016-04-01 20:00:49 +02:00
Jonathon Klobucar
494cc38bf8 Don't panic when negative number counter is submitted.
Instead now we will send a warning message to the logs
and continue on with our day.

Also a guard has been added when we detect a channel has been
closed and the `Exporter.Listen` function will return out of
its loop vs always running. When a channel is closed there will
be no more data to consume, so this seems correct. It also allows
for a test to be written for the panic.
2016-04-01 10:53:20 -07:00
Ben Kochie
85384f7bc6 Merge pull request #32 from SuperQ/master
Update for 0.2.0 release
2016-03-21 14:42:17 +01:00
Ben Kochie
6a84b510c6 Release 0.2.0
* Update Makefile.
* Add CHANGELOG.md.
2016-03-20 10:52:31 +01:00
Ben Kochie
b23cd0ab5b Update build
* Add `.gitignore`.
* Update Makefile.COMMON from prometheus/utils.
2016-03-20 09:40:05 +01:00