Commit graph

516 commits

Author SHA1 Message Date
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
Matthias Rampke
a133af8ffb
Merge pull request #171 from simonpasquier/bump-client_golang
Bump prometheus/client_golang to v0.9.2
2018-12-17 18:57:41 +00:00
Simon Pasquier
a856251d79 Bump prometheus/client_golang to v0.9.2
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-12-17 13:42:24 +01:00
Matthias Rampke
b3bf4d1f8b
Release 0.8.1
and add changelog for #169

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-12-05 21:54:40 +00:00
Matthias Rampke
e019c01fb5
Merge pull request #169 from Kong/fix-backtracking-captures-being-overwritten
fix: don't let captured fields being overwritten by backtracking
2018-12-05 21:48:52 +00:00
Wangchong Zhou
d0ad532fa1
fix: don't let captured fields being overwritten by backtracking
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-12-05 11:42:34 -08:00
Matthias Rampke
275559585e
Remove false Docker name override
and the unused QUAY_IMAGE_NAME variable altogether.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-11-30 16:12:19 +00:00
Matthias Rampke
b27cfd9c36
Merge pull request #166 from simonpasquier/go-modules
*: support Go modules
2018-11-30 15:39:51 +00:00
Simon Pasquier
8a4f87d19e *: support Go modules
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-11-29 11:14:28 +01:00
Matthias Rampke
71ec03e5b3
Merge pull request #165 from simonpasquier/circleci-2.1
circleci: switch to 2.1 config
2018-11-26 16:16:37 +00:00
Simon Pasquier
c8cf42ca4e circleci: switch to 2.1 config
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-11-26 17:02:28 +01:00
Matthias Rampke
040760ec22
Merge pull request #162 from prometheus/grobie/reduce-indentation
Break out event handling into its own function
2018-11-05 09:56:57 +00:00
Matthias Rampke
397fd90e94
Add changelog entry for #161 2018-11-05 09:55:21 +00:00
Matthias Rampke
a51c9be791
Merge pull request #161 from filippog/unmapped-fix
Register eventsUnmapped counter
2018-11-05 09:54:09 +00:00
Filippo Giunchedi
9b44d79582 Register eventsUnmapped counter
See also the related discussion at #160

Signed-off-by: Filippo Giunchedi <filippo@wikimedia.org>
2018-11-03 13:07:27 +01:00
Tobias Schmidt
ab844a3f63
Break out event handling into its own function
It's idiomatic in go to keep code indentation due to nested loops to a
minimum. Decoupling the events handling function into its own function
makes it easier to read the code and test the behavior in isolation of
the channel handling. It's now also easily possible to process events
in parallel without having to touch actual business code.

Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
2018-11-02 18:28:18 +01:00