Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Ghods committed May 6, 2016
1 parent 3ee2b63 commit bda09d5
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
# Overview

kube-state-metrics generates metrics about the state of the object inside of a
Kubernetes cluster. It is not focused on the health of the Kubernetes
components individually, but rather on the health of the various objects
inside, such as deployments, nodes and pods.
kube-state-metrics is a simple service that listens to the Kubernetes API
server and generates metrics about the state of the objects. It is not focused
on the health of the Kubernetes components individually, but rather on the
health of the various objects inside, such as deployments, nodes and pods.

*Requires Kubernetes 1.2+*

# Usage

Simply build and run kube-state-metrics inside a Kubernetes pod which has a
service account token that has read-only access to the Kubernetes cluster.

## Metrics

There are many more metrics we could report, but this first pass is focused on
those that could result in actionable alerts. Please contribute PR's for
those that could be used for actionable alerts. Please contribute PR's for
additional metrics!

### WARNING: THESE METRIC/TAG NAMES ARE UNSTABLE AND MAY CHANGE IN A FUTURE RELEASE.
Expand All @@ -25,10 +20,16 @@ additional metrics!
* deployment_replicas_available name=<deployment-name> namespace=<deployment-namespace>
* container_restarts name=<container-name> namespace=<pod-namespace> pod_name=<pod-name>


# Usage

Simply build and run kube-state-metrics inside a Kubernetes pod which has a
service account token that has read-only access to the Kubernetes cluster.

# Development

When developing, test a metric dump against your local Kubernetes cluster by running:

```
go run main.go --apiserver=<APISERVER-HERE> --in-cluster=false --port=<APISERVER-PORT> --dry-run
go run main.go --apiserver=<APISERVER-HERE> --in-cluster=false --port=<APISERVER-PORT> --dry-run
```

0 comments on commit bda09d5

Please sign in to comment.