Commit Graph

60 Commits

Author SHA1 Message Date
Benjamin Jorand 57a196b56c update doc 2023-01-23 13:51:29 +01:00
Pranshu Srivastava 9860f46776
Implement hot-reloading based on config changes
Reload KSM on-the-fly when a change is detected in the configuration.

Meta changes (will squash)
2022-11-16 20:26:12 +05:30
Pranshu Srivastava b926fd968e
Incorporate Cobra
s/pflags/cobra/g:
* Use spf13/cobra to handle all flags and sub-commands.
* Remove all spf13/pflag usage, and fallback to the in-build flag
  package if, and when needed.
* Add completion support.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2022-11-10 18:25:12 +05:30
Kubernetes Prow Robot c0a03ad6bb
Merge pull request #1813 from bavarianbidi/crd_only_mode
introduce custom-resources-only flag ...
2022-11-08 03:44:20 -08:00
Kubernetes Prow Robot d5bd2c8274
Merge pull request #1823 from rexagod/1815
Support filtering label allowlist by "*"
2022-11-08 03:42:22 -08:00
Pranshu Srivastava d982bbc9c9
Support filtering label allowlist by "*"
Support filtering label allowlist by "*", which will expand to the
enabled resources, while infering their values based on its value(s).

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2022-11-07 23:59:36 +05:30
Mario Constanti 53af11625c introduce custom-resources-only flag ...
... to only monitor all known custom-resource configurations instead of
listing each of them explicitly

Signed-off-by: Mario Constanti <mario@constanti.de>
2022-11-07 07:31:41 +01:00
Catherine Fang 43c6073234 Refactoring 2022-11-04 15:07:37 -04:00
Catherine Fang f9d29ba761 Refactoring 2022-11-04 08:44:00 -04:00
Catherine Fang 87a7793c7f Clean 2022-11-04 08:44:00 -04:00
Catherine Fang 2c0c8d2e51 Sharding per node 2022-11-04 08:44:00 -04:00
Manuel Rüger 93e79fc9d8 Remove RBAC resources from default exposed metric set
These resources might create a lot of metrics,
so we won't enable them by default for now.

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-08-23 18:44:55 +02:00
Kubernetes Prow Robot 5b017f7ffc
Merge pull request #1789 from mrueg/update-go
Update dependencies
2022-08-23 07:13:24 -07:00
Manuel Rüger 03906e6e49 Update dependencies
go v1.18.3 -> v1.18.5
prometheus v2.35.0 -> v2.37.0
golangci-lint v1.46.2 -> v1.48.0

Several go dependencies, among them:

k8s v1.24.2 -> v1.24.4

cloudbuild image
v20211118-2f2d816b90 -> v20220609-2e4c91eb7e

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-08-22 18:56:39 +02:00
Kaito Ii 51df8fe763 add rolebinding metrics 2022-08-07 01:32:57 +09:00
Kaito Ii 3c9908d0b3 add role and cluster role
Signed-off-by: Kaito Ii <kaitoii1111@gmail.com>
2022-06-30 20:55:25 +09:00
Julian van den Berkmortel 6a24f639f8
Add support for the ServiceAccount resource (Ref: #1717) 2022-06-29 23:58:01 +02:00
Noah Perks Sloan e7725f9bdb docs: update arg 2022-06-01 20:35:21 -05:00
Noah Perks Sloan 2b77ed6be8 chore: docs formatting
is there a tool for this?
2022-06-01 11:03:56 -05:00
Noah Perks Sloan a9ec8a6209 fix: remove dots in flag names 2022-06-01 09:21:05 -05:00
Noah Perks Sloan bc7cc9eac8 doc: crs flags 2022-06-01 09:18:07 -05:00
Julian van den Berkmortel da04a73f68
Add the opt-in metric family filter to expose or not to a metric family from the store (#1574) 2021-12-01 22:08:52 +01:00
Min Wang 1d0c17b80e
run make generate 2021-10-19 11:20:18 -07:00
Sylvain Rabot 0e45534441
Merge remote-tracking branch 'origin/master' into annotations 2021-08-19 16:31:20 +02:00
Lan Liang 78775b02eb rename use-api-server-cache to use-apiserver-cache in flags 2021-08-18 12:58:01 +08:00
Lan Liang 6f4fb874d2 Add doc for useAPIServerCache 2021-08-17 22:46:10 +08:00
Sylvain Rabot 0e045365f4
Factorize some code
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-07-13 11:51:39 +02:00
Sylvain Rabot b60508b2cf
Move option in the cli arguments list
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-07-13 11:28:27 +02:00
Sylvain Rabot adcf2b42c5
Regenerate docs/cli-arguments.md
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-06-07 15:59:06 +02:00
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
Manuel Rüger de2bdebc67 Regenerate cli docs 2021-03-27 00:00:45 +01:00
Manuel Rüger 2a7a96b659 Rename cli flag from label-metrics-allow-list to metric-labels-allowlist
This might be more clear on what the flag is doing. There were two ways
to spell allow-list / allowlist which it removes as well

Fixes: https://github.com/kubernetes/kube-state-metrics/issues/1421
2021-03-26 13:11:19 +01:00
Manuel Rüger cbce059ffc cli-arguments.md: Fix docs 2021-03-18 14:18:13 +01:00
Mikulas (Mike) Dite ffa4c7bf0e fix labels-metric-allow-list documentation
The parser defined in types.go does not expect quotes
https://github.com/kubernetes/kube-state-metrics/blob/master/pkg/options/types.go#L136-L140
https://github.com/kubernetes/kube-state-metrics/blob/master/pkg/options/types_test.go#L168
2021-03-03 11:07:09 +00:00
Lili Cosic 18b81768d1 docs/cli-arguments.md: Update generated args 2020-12-17 14:10:50 +01:00
Lili Cosic 3b23d01afe pkg/options/types.go: Adjust Set to parse new flag params 2020-11-18 15:59:19 +01:00
Lili Cosic cb2c2a2263 docs/cli-arguments.md: Regenerate 2020-10-05 18:06:46 +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
vikkyomkar 1be1b9d77b Renamed --namespace flag to --namespaces 2020-03-14 21:35:15 +05:30
Alexander-Carpenter d8ca14b6e6 Fix doc issue 2020-02-08 09:44:30 -06:00
Alexander-Carpenter 1eca877ce7 Change description 2020-02-05 21:39:26 -06:00
Alexander-Carpenter 36caf1ed83 Docs fix 2020-02-05 20:29:57 -06:00
Alexander-Carpenter 69fe7da267 Rename collector to resource 2020-02-05 19:43:23 -06:00
yeya24 da2dadcd3e remove deprecated metrics
Signed-off-by: yeya24 <yb532204897@gmail.com>

remove deprecated options

Signed-off-by: yeya24 <yb532204897@gmail.com>
2020-02-05 08:48:23 -05:00
Thibault Le Reste cb655340d6 Rename black-/whitelist to allow/deny-list 2020-02-03 17:05:11 +01:00
Kubernetes Prow Robot 0ff33c2137
Merge pull request #1005 from yeya24/same-port
v2: change metrics port to 8080, telemetry port to 8081
2020-01-31 01:54:20 -08:00
asidorovj f5729a5ccb add leases collector 2020-01-30 08:31:01 +03:00
yeya24 53af563a6a change metrics port to 8080, telemetry port to 8081
Signed-off-by: yeya24 <yb532204897@gmail.com>
2019-12-13 12:47:07 -05:00
Tariq Ibrahim ea4c2eb764
Merge branch 'master' into networkpolicy-collector 2019-10-17 10:10:45 -07:00