Commit Graph

145 Commits

Author SHA1 Message Date
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