Commit Graph

112 Commits

Author SHA1 Message Date
Andy Xie 14ba135253 add generic pod resource request and limit 2018-05-17 13:20:53 +08:00
Andy Xie 63668e4aff add support for differenct auth provider 2018-05-06 11:24:10 +08:00
Andy Xie fef896fa62 refactor to toward kubernetes way 2018-04-27 22:23:12 +08:00
Andy Xie 5a45360de1 sanity check 2018-03-15 00:06:58 +08:00
Tomas Dohnalek 5c63f7a2e7
Fixed namespaceList type 2018-03-13 08:55:18 +01:00
Tomas Dohnalek 494d6c2fd1
Allow to specify multiple namespace. 2018-03-13 08:55:17 +01:00
k8s-ci-robot 7590d83b1e
Merge pull request #371 from metalmatze/master
Use Kubernete's own func that creates config by apiserver or kubeconfig
2018-03-07 18:06:56 -08:00
Matthias Loibl 054d9cbb51
Remove unnecessary flag safe guards 2018-03-07 17:20:25 +01:00
Andy Xie 4b6ee09141 add secret and configmap metrics 2018-03-01 11:41:50 +08:00
Matthias Loibl 3438df5cbe Use Kubernete's own func that creates config by apiserver or kubeconfig 2018-02-17 16:39:24 +01:00
Raphael Deem 7b01f09851 use glog instead of log 2018-01-19 10:22:56 -08:00
Raphael Deem ff22a84098 enable log in the prom http handler 2018-01-18 15:25:59 -08:00
Andy Xie c797923132 revert componentstatus 2018-01-05 21:18:23 +08:00
Andy Xie ffde60edbc add kube-state-metrics own metrics 2018-01-03 23:29:34 +08:00
jordigilh 3863ec73f2 Pluralized 'Endpoint' in collector output name in main to match convention 2017-12-22 11:53:53 -05:00
jordigilh bdb3f96897 Add Endpoint collector 2017-12-20 13:48:55 -05:00
Frederic Branczyk 472492606d
Allow setting host/ip to bind HTTP server to 2017-12-20 14:06:50 +01:00
zouyee 5452f06393 add componentstatus metrics 2017-12-04 20:57:19 +08:00
zouyee 4eb3169e3d add persistentvolume 2017-12-03 23:43:42 +08:00
Andy Xie c006df3259 code refactor 2017-12-03 10:55:53 +08:00
zouyee 96c73b5f7a add version cli 2017-12-03 10:23:53 +08:00
zouyee 1b6f355263 fix hpa nil error 2017-10-25 15:54:33 +08:00
Frederic Branczyk 0e96be106a Merge pull request #230 from joemiller/hpa-metrics
implement horizontal pod autoscaler (HPA) metrics
2017-10-23 16:41:13 +02:00
Andy Xie 19797a2830 bump kubernetes&&client-go&&api&&apimachinery to 1.8 2017-10-11 20:03:19 +08:00
joe miller 703eccf39f
implement horizontal pod autoscaler (HPA) metrics 2017-10-10 10:43:51 -07:00
Kazuki Suda 1b267801f7 Avoid a random result 2017-09-21 09:23:42 +09:00
Kazuki Suda aa0c701ed4 Improve a usage message for collectors flag
It makes a sentence clear and shows a default value.

```
      --collectors string                Comma-separated list of collectors to be enabled. Defaults to "services,persistentvolumeclaims,nodes,replicationcontrollers,statefulsets,replicasets,resourcequotas,jobs,namespaces,daemonsets,deployments,limitranges,pods,cronjobs"
```
2017-09-20 16:05:30 +09:00
chenguoyan01 bc0696696a display default logtostderr in help output 2017-09-16 21:22:30 +08:00
chenguoyan01 720d15bb86 set logtostderr true 2017-09-16 07:20:05 +08:00
chenguoyan01 5483d5ef1f add goflag to parse glog flags 2017-09-15 23:27:39 +08:00
Andy Xie 1ad96f6daf add pprof 2017-09-14 07:43:14 +08:00
zouyee 24fb41d5c3 add namespace metric and fix code component etc. 2017-08-22 20:08:14 +02:00
Andy Xie 47dfb48f7a add namespace cmd arg 2017-08-21 22:11:33 +08:00
Yecheng Fu b3d25efe6a Add PersistentVolumeClaim metrics.
Initially, it contains only one metric: `kube_persistentvolumeclaim_status_phase`.
2017-07-28 10:56:30 +00:00
Stijn De Haes fe6a64feba Added StatefulSet metrics 2017-06-18 20:47:43 +02:00
Andrew Davidoff 87c400c02a Pull request updates set 2
* Break out timing metrics from info into their own metrics
* Protect against a nil pointer dereference
* New repo/module structure
2017-05-08 13:50:11 -04:00
Andrew Davidoff 988a30d318 Expose Job and CronJob metrics 2017-05-08 13:43:53 -04:00
Frederic Branczyk 20df7080c4
*: move collectors to own package 2017-05-08 13:24:15 +02:00
Frederic Branczyk a844b25df8
fix service and limitrange rbac roles and fix order and naming 2017-05-03 14:53:01 +02:00
Frederic Branczyk 1cd6838845
add service info and label metrics 2017-04-28 16:48:57 +02:00
Frederic Branczyk 81ba59afd9
add pod and node label metrics 2017-04-28 16:22:55 +02:00
zouyee 776a66e0b4 add limit range 2017-03-28 13:00:04 +08:00
Dominik Schulz 09edb28ae8 Add ReplicationController metrics 2017-03-07 11:52:16 +01:00
Frederic Branczyk edd182ece0
add replicaset metrics 2017-02-02 14:29:58 +01:00
Frederic Branczyk efdfc9a331
allow choosing which collectors to run 2017-02-02 14:07:02 +01:00
Andrew Davidoff 7b6eb5ab81 client-go update and new Deployment metric
* Update to the newest tagged client-go release, v2.0.0-alpha.1
* Expose Deployment RollingUpdate Strategy MaxUnavailable
2017-01-27 04:56:43 +00:00
koudaiii 047b1e6d7e If --cluster-info is false, kubeconfig is valid 2017-01-11 16:32:49 +09:00
Ferran Rodenas ac716b14dc Fix loading kubeconfig file
* Don't set a default --kubeconfig flag value so NewDefaultClientConfigLoadingRules
will pick up the default locations

* Set an ExplicitPath using --kubeconfig flag value
2016-12-20 22:28:45 +01:00
slaws cc49cb4468 Add resource quotas metrics (#51) 2016-12-15 13:13:28 -08:00
Dominik Schulz 6622d0a6e6 Add DaemonSet metrics (#54) 2016-12-12 12:55:45 -08:00
Fabian Reinartz 07e4d4f5b0 Merge pull request #30 from brancz/clientgo15
use kubernetes informer framework
2016-10-18 13:49:52 +02:00
Frederic Branczyk 67bf6b9c09 don't panic when requesting help (#42) 2016-10-17 15:32:29 +02:00
Frederic Branczyk 9bbd1af70d
use kubernetes informer framework 2016-10-17 14:32:51 +02:00
Frederic Branczyk f689aa5f04
vendor: k8s.io/client-go/1.5 2016-10-17 13:32:20 +02:00
Fabian Reinartz 031eb8da34 Add Makefile (#25)
* Remove canonical import path

This either causes issues for the CI or people having the
repo checked out into the correct k8s.io/kube-state-metrics directory

.

* Add Makefile
2016-09-20 12:12:20 +02:00
Daniel Sachse 1cce9e63cc Added docker image and kubernetes files 2016-09-20 11:11:53 +02:00
Frederic Branczyk 6af709b410 switch to k8s.io/client-go as kubernetes client 2016-09-14 10:23:02 +02:00
Frederic Branczyk 9e32ecd2dc cleanup unused code 2016-09-13 11:19:35 +02:00
Fabian Reinartz 53ddc0e346 Rework node metrics
This commit reworks node metrics in the same manner as deployment
metrics.
The node states are broken out into one time series for each possible
conditional state. One constant metric holds textual meta information
about cluster nodes.
2016-09-07 10:31:28 +02:00
Frederic Branczyk ed505ccd41 Container restart metric (#9)
* Rework container restart metric

This commit reworks the container restart metric in the same manner as
deployment metrics. The format remains unchanged to the previous format
as in one metric per container via labels.

* Normalize expected string representation

To be able to compare strings easier when a failure occurs, remove empty
lines and trim whitespace for each line of the expected metrics string.
2016-09-07 10:20:31 +02:00
Fabian Reinartz b15680d96d Rework deployment metrics (#6)
* Update prometheus client vendoring

* Rework deployment metrics

This change extracts the deployment metrics into their own
deployment collector. The metrics are collected synchronously with
each scrape rather than every 10 seconds.

The `deployment` label replaces the `name` label to avoid name
collisions further up in the monitoring chain.
2016-09-01 15:58:22 -07:00
Sam Ghods 795d6c51e7 Create kube-state-metrics 2016-05-06 14:36:03 -07:00