Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue 8ae6202b7e
Merge pull request #56871 from jpbetz/etcd-version-monitor-3.1
Automatic merge from submit-queue (batch tested with PRs 56650, 55813, 56911, 56921, 56871). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Improve etcd-version-monitor metrics proxying, add etcd 3.1 gprc metr…

Partially addresses https://github.com/kubernetes/kubernetes/issues/56869:

- Fix `etcd-version-monitor` to support etcd 3.1: Add support for the etcd 3.1+ [go-grpc-prometheus](https://github.com/grpc-ecosystem/go-grpc-prometheus) metrics format, which backward incompatibly replaces  the 3.0 legacy grpc metric format. Expose the go-grpc-prometheus metrics both in the 3.1 format and in the 3.0 format so systems consuming `etcd-version-monitor` metrics have a clean, simple upgrade path.
- Expose *all* etcd metrics by default, making this a one stop shop for all etcd metrics.
- Expose grpc request latency histogram metrics (`grpc_server_handling_seconds` from [go-grpc-prometheus](https://github.com/grpc-ecosystem/go-grpc-prometheus) metrics format). Rewrite etcd 3.0 legacy metric for latency histograms to the etcd 3.1+ `go-grpc-prometheus` format so there is a single format exported for all etcd versions.

etcd 3.0 to 3.1 upgrade path:  Continue to use the `etcd_grpc_requests_total`. Once the upgrade is complete and all etcd nodes are running 3.1, migrate to the `grpc_server_handled_total` metric at your leisure.

This PR reorganizes the code substantially. Previously, the code to proxy etcd metrics was hard coded and limited to a single counter metric. This has been entirely replaced with code that generically filters, rewrites proxied etcd metrics and then aggregates them with custom metrics such as the etcd version metric.

cc @wojtek-t @mml @shyamjvs @cheftako 

```release-note
Fix `etcd-version-monitor` to backward compatibly support etcd 3.1 [go-grpc-prometheus](https://github.com/grpc-ecosystem/go-grpc-prometheus) metrics format.
```
2017-12-16 12:10:54 -08:00
.github
api Merge pull request #54998 from tengqm/autoscale-api-doc 2017-12-16 05:46:37 -08:00
build Add hyperkube to make quick-release 2017-11-30 15:17:46 -05:00
cluster Merge pull request #56871 from jpbetz/etcd-version-monitor-3.1 2017-12-16 12:10:54 -08:00
cmd Merge pull request #56287 from stewart-yu/removeDeprecatedCode 2017-12-16 09:33:42 -08:00
docs Merge pull request #54998 from tengqm/autoscale-api-doc 2017-12-16 05:46:37 -08:00
examples
Godeps Merge pull request #56161 from ericchiang/go-jose-import 2017-12-15 04:33:38 -08:00
hack Merge pull request #56878 from perotinus/fix-comment-mistake 2017-12-16 09:33:45 -08:00
logo
pkg Merge pull request #56921 from andyzhangx/flexvolume-windows 2017-12-16 12:10:51 -08:00
plugin Merge pull request #56650 from danwinship/networkpolicy-rbac 2017-12-16 12:09:11 -08:00
staging Merge pull request #56812 from dims/drop-using-cloud-provider-for-setting-host-address 2017-12-16 07:46:43 -08:00
test Merge pull request #56702 from soltysh/backoff_limit_reset 2017-12-16 09:33:39 -08:00
third_party
translations
vendor Merge pull request #56161 from ericchiang/go-jose-import 2017-12-15 04:33:38 -08:00
.bazelrc
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG-1.2.md
CHANGELOG-1.3.md
CHANGELOG-1.4.md
CHANGELOG-1.5.md
CHANGELOG-1.6.md Update CHANGELOG-1.6.md for v1.6.13. 2017-11-22 14:06:09 -08:00
CHANGELOG-1.7.md Update CHANGELOG-1.7.md for v1.7.11. 2017-11-25 16:37:13 -05:00
CHANGELOG-1.8.md Update CHANGELOG-1.8.md for v1.8.5. 2017-12-07 09:10:33 -08:00
CHANGELOG-1.9.md Update CHANGELOG-1.9.md for v1.9.0. 2017-12-15 14:15:58 -08:00
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
labels.yaml
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES
README.md
SUPPORT.md
Vagrantfile fix download link for fedora libvirt vagrant box 2017-11-18 22:26:57 +05:30
WORKSPACE

Kubernetes

Submit Queue Widget GoDoc Widget CII Best Practices


Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.

Kubernetes builds upon a decade and a half of experience at Google running production workloads at scale using a system called Borg, combined with best-of-breed ideas and practices from the community.

Kubernetes is hosted by the Cloud Native Computing Foundation (CNCF). If you are a company that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF. For details about who's involved and how Kubernetes plays a role, read the CNCF announcement.


To start using Kubernetes

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To start developing Kubernetes

The community repository hosts all information about building Kubernetes from source, how to contribute code and documentation, who to contact about what, etc.

If you want to build Kubernetes right away there are two options:

You have a working Go environment.
$ go get -d k8s.io/kubernetes
$ cd $GOPATH/src/k8s.io/kubernetes
$ make
You have a working Docker environment.
$ git clone https://github.com/kubernetes/kubernetes
$ cd kubernetes
$ make quick-release

If you are less impatient, head over to the developer's documentation.

Support

If you need support, start with the troubleshooting guide and work your way through the process that we've outlined.

That said, if you have questions, reach out to us one way or another.

Analytics