Commit graph

746 commits

Author SHA1 Message Date
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
Matthias Rampke
3b846b33a8
Consistently use v prefix in changelog
Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-10-12 08:33:27 +00:00
Matthias Rampke
555cd98958
Release 0.8.0
I've been running the RC in production without issues.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-10-12 08:30:58 +00:00
Matthias Rampke
877630c2b7
Release RC for version 0.8.0
the FSM change is quite deep, I want to have a set of binaries to test
with.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-10-10 22:03:04 +00:00
Matthias Rampke
00e2c3ff26
Merge pull request #157 from Kong/feat/fsm-matcher
Faster glob matching using a finite state machine
2018-10-11 00:02:06 +02:00
Matthias Rampke
4e53440316
Move bench target out of common Makefile
we should not change the vendored Makefile.common here.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-10-10 21:37:26 +00:00
Matthias Rampke
e5734e34e9
Copy edit comments in fsm/formatter
Fixing a typo and language.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-10-10 21:31:51 +00:00
Matthias Rampke
97f71db21b
Put in-line image on its own paragraph
Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-10-10 21:24:08 +00:00
Matthias Rampke
9fc976d906
Copy edits in FSM README
Format quote as such, capitalize FSM.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-10-10 21:22:53 +00:00
Matthias Rampke
761e64df10
Copy-edits in README
straightening out some wording, and fixing unquoted `*`.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
2018-10-10 21:18:00 +00:00
Wangchong Zhou
4d9ce8c70a
add readmes
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-10-04 10:55:33 -07:00
Wangchong Zhou
c10e80c44b
optimizations
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-10-03 16:31:00 -07:00
Wangchong Zhou
699fa13c8c
add benchmark test to ci
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-09-28 14:42:09 -07:00
Wangchong Zhou
fcf11f02e5
promote formatLabels to mapper package
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-09-28 14:03:19 -07:00
Wangchong Zhou
5262b2904c
tidy up and use go benchmark
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-09-28 12:58:25 -07:00
Wangchong Zhou
6d709d52c1
gofmt
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-09-24 16:46:16 -07:00
Wangchong Zhou
a0681a0cd2
more perf test
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-09-24 16:08:08 -07:00
Wangchong Zhou
a8dcc589e5
add more perf test
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-09-24 13:36:43 -07:00
Wangchong Zhou
f387766cc2
cleanup and add comments
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-09-24 13:36:08 -07:00
Wangchong Zhou
668e31e5f1
license header
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-09-21 18:13:23 -07:00
Wangchong Zhou
5e1df60d22
abstract dumpFsm
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
2018-09-21 18:11:00 -07:00