Commit Graph

41 Commits

Author SHA1 Message Date
Catherine Fang aeb9e355b5 Fix Nodetype 2024-07-24 10:01:05 -04:00
Catherine Fang eda1984438 Rename --enable-unscheduled-pods-fetching to --track-unscheduled-pods 2024-07-23 20:21:17 -04:00
CatherineF-dev 4a524950f1 Update pkg/options/types.go
Co-authored-by: Alex Kennedy <alexzanderkennedy@gmail.com>
2024-07-23 20:19:09 -04:00
Catherine Fang 85f8a2c4cc rename to --enable-unscheduled-pods-fetching 2024-07-23 20:19:09 -04:00
CatherineF-dev b27845d535 use --enable-no-node-scrape
Co-authored-by: Alex Kennedy <alexzanderkennedy@gmail.com>
2024-07-23 20:18:35 -04:00
Catherine Fang 8f3c5c432b Add e2e test 2024-07-23 20:18:00 -04:00
Catherine Fang b45913db59 Fix --nodeName= doesn't select unscheduable pods
pods
2024-07-23 20:17:48 -04:00
蓝宝石的傻话 d1f04c2479 Add code comments
Signed-off-by: 蓝宝石的傻话 <mickey_zzc@163.com>
2023-10-20 23:10:16 +08:00
mickeyzzc 539f57d75d simplified configuration
Signed-off-by: mickeyzzc <mickey_zzc@163.com>
2023-10-12 21:00:10 +08:00
mickeyzzc 82f567907e pods support no node scraping
Signed-off-by: mickeyzzc <mickey_zzc@163.com>
2023-10-11 13:47:05 +08:00
Catherine Fang 43c6073234 Refactoring 2022-11-04 15:07:37 -04:00
CatherineF-dev 813496de4f Update README.md
Co-authored-by: Manuel Rüger <manuel@rueg.eu>
2022-11-04 13:12:53 -04:00
Catherine Fang f9d29ba761 Refactoring 2022-11-04 08:44:00 -04:00
Catherine Fang d523f8e0e4 Move merging fieldselectors into app/server.go and replace namespaceFitler with fieldSelectorFilter 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
John ebb8b10551
Apply suggestions from code review
Co-authored-by: JUN YANG <yang.jun22@zte.com.cn>
2022-08-13 21:44:46 +02:00
John d5486a7d87
Apply suggestions from code review
Co-authored-by: JUN YANG <yang.jun22@zte.com.cn>
2022-08-13 21:44:23 +02:00
John 62beea063a
Apply suggestions from code review
Co-authored-by: JUN YANG <yang.jun22@zte.com.cn>
2022-08-13 21:44:00 +02:00
dmpe f406c1aa1d feat(logging): migrate to structured logging
Signed-off-by: dmpe <John Malc> <cincenko@outlook.com>
2022-08-13 14:18:56 +02:00
Min Wang 853ad1028a
adddress comments 2021-10-19 11:20:18 -07:00
Min Wang bde6d151ef
fix linter check 2021-10-19 11:20:18 -07:00
Min Wang c6ec339eea
address comments 2021-10-19 11:20:18 -07:00
Min Wang 77418c7dba
Add namespace denied list 2021-10-19 11:20:17 -07:00
xubin5 fc7a1a4639 Correct a typo in comments 2021-05-12 17:03:53 +08:00
Mikulas (Mike) Dite 70d039b140 Add wildcard option to labels-metric-allow-list 2021-03-30 14:26:12 +01:00
Lili Cosic ca6b177014 pkg/options/types.go: Adjust Set to parse new flag params 2020-11-20 15:31:35 +01:00
Lili Cosic 0b76e7d4f4 internal/store: Rework label allow list for label metrics 2020-11-20 15:31:35 +01: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
Alexander-Carpenter 69fe7da267 Rename collector to resource 2020-02-05 19:43:23 -06:00
Ben Wells a9c5ff9164 Simplify collector/metric set 2019-10-07 09:04:25 +01:00
Miles Bryant e1b45de7f6
builder/main: allow collectors not enabled by default
This fixes an issue where it was impossible to specify a collector that
was available but not selected by default.

Instead of checking whether chosen collectors are valid at flag parse
time, this moves the check into the builder, where we can reference it
against the availableStores in the builder. As a bonus, the error
message also prints out a list of available collectors:

```
kube-state-metrics --collectors non-existent-collector
I0618 15:23:34.517532   50719 main.go:88] Using collectors non-existent-collector
F0618 15:23:34.519132   50719 main.go:90] Error: collector non-existent-collector does not exist. Available collectors: persistentvolumeclaims,configmaps,limitranges,nodes,namespaces,persistentvolumes,pods,replicasets,services,cronjobs,deployments,ingresses,horizontalpodautoscalers,jobs,poddisruptionbudgets,secrets,certificatesigningrequests,daemonsets,endpoints,storageclasses,replicationcontrollers,resourcequotas,statefulsets
```
2019-06-18 16:28:11 +01:00
reetasingh 2720645a94 Adding unit test and fixing typo 2019-04-21 05:13:09 -04:00
tariqibrahim d1c88bd26a use a more idiomatic way of handling error messages 2019-04-14 00:00:51 -07:00
tariqibrahim 68573d75a5 fix all golint issues in kube-state-metrics 2019-03-02 10:11:18 -08:00
tariqibrahim ab128fedf4 correct some typographical mistakes in kube-state-metrics 2019-02-02 21:55:12 -08:00
Max Leonard Inden 7ac0ab7410
pkg/builder: Make collector order deterministic
Instead of iterating a map of enabled collectors, iterate a sorted
slice to achieve determinism across scrapes.

Having a consistent order in the metrics output enables Proemetheus to
apply optimizations during metric parsing and ingestion.
2018-11-29 15:43:44 +01:00
Frederic Branczyk c522d44f7b
Allow white- and black-listing metrics to be exposed 2018-07-23 17:36:11 +02:00
Andy Xie 14ba135253 add generic pod resource request and limit 2018-05-17 13:20:53 +08:00
Andy Xie dc2501019a fix collectors argument panic 2018-05-16 12:09:38 +08:00
Andy Xie fef896fa62 refactor to toward kubernetes way 2018-04-27 22:23:12 +08:00