Commit graph

331 commits

Author SHA1 Message Date
Brian Akins
92957ce080 Add metric to track unique metric names the exporter is tracking
Signed-off-by: Brian Akins <brian@akins.org>
2019-04-10 12:23:07 -04:00
Matthias Rampke
468c70df7d
Add #197 to changelog
Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2019-04-10 08:49:07 +00:00
Matthias Rampke
ece9385f22
Merge pull request #197 from bakins/escapeMetricName-performance
Increase escapeMetricName performance
2019-04-10 08:47:49 +00:00
Brian Akins
cfcf3c9ba5 Add comments explaining escapeMetricName
Signed-off-by: Brian Akins <brian@akins.org>
2019-04-09 14:10:26 -04:00
Brian Akins
7f70979120 Add Benchmarks for escapeMetricName
Signed-off-by: Brian Akins <brian@akins.org>
2019-04-09 11:58:18 -04:00
Brian Akins
e6bdf13407 Add comments explaining escapeMetricName
Signed-off-by: Brian Akins <brian@akins.org>
2019-04-09 11:58:18 -04:00
Brian Akins
d371436f01 Replace regex in escapeMetricName with loop over runes
Signed-off-by: Brian Akins <brian@akins.org>
2019-04-09 11:58:18 -04:00
Matthias Rampke
3955c6ef1b
Update changelog for #193 #194
Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2019-04-09 12:15:25 +00:00
Matthias Rampke
178d130388
Merge pull request #193 from bakins/statsd_exporter_events_total
Add metric for count of events by action
2019-04-09 12:13:17 +00:00
Matthias Rampke
43cef6ce6a
Merge pull request #194 from vsakhart/register_inconsistent_metrics
Allow support for inconsistent label sets by marking metrics registered as unchecked collectors
2019-04-09 12:08:33 +00:00
Brian Akins
1cbc5a9b27 Add metric for count of events by action
Signed-off-by: Brian Akins <brian@akins.org>
2019-04-02 15:20:50 -04:00
Vitaliy Sakhartchouk
2fc89536f4 Break out mapkey generation into function
Signed-off-by: Vitaliy Sakhartchouk <vsakhart@github.com>
2019-03-29 13:25:46 -07:00
Vitaliy Sakhartchouk
2025b47cb1 Allow support for inconsistent label sets by marking metrics
registered as unchecked collectors

Signed-off-by: Vitaliy Sakhartchouk <vsakhart@github.com>
2019-03-29 13:18:31 -07:00
Matthias Rampke
71df5a3198
Update changelog for #192
add note about the metric change.
2019-03-26 12:11:17 +00:00
Matthias Rampke
035a309552
Merge pull request #192 from ivanizag/master
Fixes #191: crash on empty metric name
2019-03-26 12:08:35 +00:00
Ivan Izaguirre
51e735c878 Fix test error message
Signed-off-by: Ivan Izaguirre <ivanizag@gmail.com>
2019-03-26 01:02:38 +01:00
Ivan Izaguirre
c9e5e94ed2 Adds a separate counter for events discarded due to errors
Signed-off-by: Ivan Izaguirre <ivanizag@gmail.com>
2019-03-26 00:44:17 +01:00
Ivan Izaguirre
c477c7703f Fix format to comply with go1.11 rules
Signed-off-by: Ivan Izaguirre <ivanizag@gmail.com>
2019-03-23 19:47:25 +01:00
Ivan Izaguirre
1c71191aaf Fixes #191: crash on empty metric name
Signed-off-by: Ivan Izaguirre <ivanizag@gmail.com>
2019-03-23 19:38:27 +01:00
Matthias Rampke
1036439f69
Add changelog entry for #182
Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2019-03-13 13:23:37 +00:00
Matthias Rampke
680afe25f1
Merge pull request #182 from vaibhavkhurana2018/adds_health_check
Adds healthcheck for checking the status of the container
2019-03-13 13:07:38 +00:00
Vaibhav Khurana
88af8dcd24 Fixing healthcheck
Signed-off-by: Vaibhav Khurana <vaibhav.khurana@razorpay.com>
2019-03-13 16:48:06 +05:30
Matthias Rampke
eeab36e63f
Release v0.9.0
update version and changelog.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2019-03-11 08:33:21 +00:00
Vaibhav Khurana
7830fea9ae Adds healthcheck for checking the status of the container
Signed-off-by: Vaibhav Khurana <vaibhav.khurana@razorpay.com>
2019-01-29 13:12:44 +05:30
Matthias Rampke
d5b22a2993
Merge pull request #181 from prometheus/superq/reloaddoc
Mention automatic reloading in the README.
2019-01-24 09:16:10 +00:00
Ben Kochie
5ff2356e36
Mention automatic reloading in the README.
Signed-off-by: Ben Kochie <superq@gmail.com>
2019-01-24 08:26:45 +01:00
Matthias Rampke
671c01aa7f
Update changelog for #178, increment release candidate
No 0.9.0 release candidate was ever published because of CI issues, so
we can still add this change before the release.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2019-01-09 17:58:21 +00:00
Matthias Rampke
a566da3f87
Merge pull request #178 from SpencerMalone/patch-1
Scale summaries from milliseconds to seconds.
2019-01-09 17:54:18 +00:00
SpencerMalone
c73a7b2c9a Scale summaries from milliseconds to seconds.
Fixes #177

Updating exporter tests for new summary unit scaling behavior

Signed-off-by: Spencer Malone <malone.spencer@gmail.com>
2019-01-09 12:37:38 -05:00
Matthias Rampke
2d35b097ae
Merge pull request #175 from simonpasquier/add-staticcheck
Travis CI: add staticcheck target
2019-01-04 15:52:12 +00:00
Simon Pasquier
8f56cc811d *: add staticcheck target back
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2019-01-04 15:26:57 +01:00
Matthias Rampke
65070524c3
Merge pull request #174 from dongwenjuan/master
fix the format of code-block in README
2018-12-27 14:49:50 +00:00
dongwenjuan
d655643a58 fix the format of code-block in README
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2018-12-27 11:35:02 +08:00
Matthias Rampke
ad36bba13d
Release 0.9.0-rc2
rc1 failed to build because of CircleCI/Quay issues. Let's try this
again …

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-12-21 09:48:44 +00:00
Matthias Rampke
4d0c8ab2c2
bump to 0.9.0-rc1
since build issues prevented rc0 from being built through the normal
process, make a new release.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-12-20 17:37:27 +00:00
Matthias Rampke
f13069832d
Actually cut out staticcheck
Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-12-20 17:33:24 +00:00
Matthias Rampke
d712534c13
Try working around staticcheck issues
by not running staticcheck. meh.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-12-20 17:31:40 +00:00
Matthias Rampke
15e0f4c963
Release candidate for 0.9.0
both the client library update and the TTLs may have unexpected
consequences. cut a pre-release so that they can be test driven.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-12-20 16:50:45 +00:00
Matthias Rampke
141e366e22
Add CHANGELOG entry for #164
Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-12-20 16:49:50 +00:00
Matthias Rampke
cd3a546179
Clarify TTLs configuration remark
I realized that "TTLs are applied" is ambiguous. Metrics don't only
expire on receiving a sample, so mention that this is about the
configuration.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-12-20 16:47:22 +00:00
Matthias Rampke
7364c6fe44
Merge pull request #164 from flant/remove_stale_metrics
Remove stale metrics
2018-12-20 16:45:49 +00:00
Ivan Mikheykin
699c11ca11 Rework tests to not depend on actual wall clocks
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
2018-12-19 08:24:25 +03:00
Ivan Mikheykin
331d2a56d0 Language fixes in README, reduce map lookups in saveLabelValues.
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
2018-12-19 08:24:17 +03:00
Ivan Mikheykin
e550f061f6 Use updated ttl value from mapping in saveLabelValues
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
2018-12-18 09:46:10 +03:00
Ivan Mikheykin
d1b2dd47a8 TTL expiration tests, README update
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
2018-12-18 09:46:05 +03:00
Ivan Mikheykin
57495db281 rename labelsNames to labelNames
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
2018-12-18 08:39:23 +03:00
Ivan Mikheykin
e1a3a5fc32 Configured ttl value for stale metrics
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
2018-12-18 08:39:23 +03:00
Ivan Mikheykin
b4e29c5f18 Remove stale timeseries
- ttl is hardcoded — should be in mapping.yaml
- works with metrics without labels

Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
2018-12-18 08:39:23 +03:00
Ivan Mikheykin
b638b9d808 Replace Metrics with Collectors
- use MetricVec family instead of Metric
- dynamic label values instead of ConstLabels
- use dto.Metric to gain histrogram value in exporter_test
- remove hash calculations

Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
2018-12-18 08:39:23 +03:00
Matthias Rampke
ef5d2c8a79
Add basic release note for #171
I'd like to add more detail, but I'm not sure I understand the
implications just yet, and they will probably change with #164.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-12-17 19:47:16 +00:00