Commit Graph

19 Commits

Author SHA1 Message Date
Catherine Fang 5995c1e2cf Add all stable metrics 2022-10-14 08:25:39 -04:00
evir35 7f453f0569
Fix none to blank string 2022-09-23 21:38:00 +09:00
evir35 242cea3ecc
Fix return blank string when Service is nil 2022-09-23 19:35:50 +09:00
Adam Malcontenti-Wilson 8608588043 Add ingressclass to kube_ingress_info metric 2021-12-16 10:59:23 +11:00
Gabi Davar 6512e2ce27
fixed four resources with copy/paste issues
Signed-off-by: Gabi Davar <grizzly.nyo@gmail.com>
2021-09-20 18:18:33 +03:00
Sylvain Rabot 65bc62af5c
Add kube_*_annotations metrics
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-04-29 16:04:16 +02:00
Lili Cosic 0b76e7d4f4 internal/store: Rework label allow list for label metrics 2020-11-20 15:31:35 +01:00
Lili Cosic 9c1d4ace30 internal/store/ingress: Migrate to k8s.io/api/networking/v1 API 2020-10-13 10:19:11 +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
Kubernetes Prow Robot 73d55ba141
Merge pull request #989 from clamoriniere/feature/customBuilder
Add the possibility to provide “custom” metric-store to the builder
2020-01-09 03:47:45 -08:00
Lili Cosic 087c381d5f internal/store/*: Move resource version to value from label
The resource version metrics expose the resource version as a string in the label.
This value can change often and would therefore create huge cardinality.

This changes is to be the number value of the metric itself instead.
2019-12-20 15:55:30 +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
Tariq Ibrahim 1b42e7c450
lint: enforce goimports local prefixes 2019-08-20 10:33:05 -07:00
Tariq Ibrahim 9799ac0e61
Merge release-1.7 into upstream/master 2019-08-05 10:46:00 -07:00
Lili Cosic 684293930a internal/store/*: Enable metric headers in tests 2019-07-26 13:31:20 +02:00
Ergin Babani 5149453fe2 Add metrics for tls host and secretname 2019-07-21 17:57:29 -04:00
Ergin Babani 4d0d77244a Fix crash due to missing ingress http block
It's acceptable although uncommon for an ingress to have a rule and a host,
but no HTTP block for that particular rule.
2019-07-18 17:17:01 -04:00
Andrey Sidorov 5ae00bb93f add kube_*_annotations metrics for all objects 2019-06-25 22:29:27 +03: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