Commit Graph

10 Commits

Author SHA1 Message Date
Manuel Rüger 2f20203c09 Replace pkg/errors with stdlib errors
github.com/pkg/errors is archived and not maintained anymore.
Replace it with stdlib functions.

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-08-15 20:25:09 +02:00
Arunprasad Rajkumar 26a9a66205
test: Use go-cmp package to diff test expectation
Prior to this PR, it is pretty hard and manual to diff the test failure expectation
vs actual. This PR simplifies using github.com/google/go-cmp/cmp
package.

Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
2021-09-16 17:28:54 +05:30
Sylvain Rabot 65bc62af5c
Add kube_*_annotations metrics
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-04-29 16:04:16 +02:00
Mikulas (Mike) Dite 70d039b140 Add wildcard option to labels-metric-allow-list 2021-03-30 14:26:12 +01:00
Quentin Bisson 7250bc2b5c
Update go module path to k8s.io/kube-state-metrics/v2
Signed-off-by: Quentin Bisson <quentin@giantswarm.io>
2020-09-21 10:58:08 +02:00
cedric lamoriniere ae822f3a2c update code after review
* fix typo
* update copyright date in new files

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2019-12-17 22:37:23 +01:00
cedric lamoriniere c83e410d37 tmp: add back interface for perf 2019-12-13 10:50:19 +01:00
cedric lamoriniere 72ad3cb412 Remove FamilyByteSlicer interface
- To allow other external Stores, remove the `FamilyByteSlicer` interface
  and give access directly to `metric.Family`.
- Move functions present in `pkg/metric/generator.go` to a dedicated package
  `generator` in `pkg/metric_generator/generator.go`.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2019-12-13 10:50:19 +01:00
Lili Cosic aba4af8fb8 internal/store/testutils.go: Enable headers
Currently the metric headers were not being tested, this enables the
testing.
2019-07-26 13:30:22 +02:00
Lili Cosic 68aea02d26 Makefile,internal/collector: Rename collector -> store
Since the removal of collector, this introduces both the concept of the
store and the resources instead of collectors that the user passes in.

The user facing logs and flags were not changed as that would be a
regression.
2019-06-11 16:18:53 +02:00