Commit Graph

12 Commits

Author SHA1 Message Date
Lili Cosic 3b23d01afe pkg/options/types.go: Adjust Set to parse new flag params 2020-11-18 15:59:19 +01:00
Kubernetes Prow Robot 3faa773aee
Merge pull request #1248 from kubernetes/master
Merge master into release-2.0
2020-10-05 01:57:05 -07:00
Joel Whittaker-Smith a11255320a Now references closure scoped family generator
Signed-off-by: Joel Whittaker-Smith <jdws.dev@gmail.com>
2020-09-28 13:57:51 +02: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
Joel Whittaker-Smith 9969cfd20d Fix test as sometimes metrics keys and values are generated in different order 2020-09-02 21:19:57 +02:00
Joel Whittaker-Smith 908f87b2cd apply boundaries to metrics and allow via flag what labels to include
Signed-off-by: Joel Whittaker-Smith <jdws.dev@gmail.com>
2020-08-26 12:42:30 +02:00
Yuiko Mori 49197428ce Add DeprecatedVersion to struct FamilyGenerator 2020-08-06 10:31:29 +00:00
Thibault Le Reste cb655340d6 Rename black-/whitelist to allow/deny-list 2020-02-03 17:05:11 +01: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 0a3c7d7fe3 create builder public package
* Allow to extend the internal Builder
* All logics still internal
* Add in `metric.Family` the metric family `Type` (counter, gauge)

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
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