-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add kube-state-metrics
based metricsets
#4253
Changes from all commits
e13f217
ef295e1
28c68cb
7c8316c
1fba4ef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1181,6 +1181,73 @@ github.com/ericchiang/k8s | |
Apache License | ||
|
||
|
||
-------------------------------------------------------------------- | ||
github.com/golang/protobuf | ||
-------------------------------------------------------------------- | ||
Go support for Protocol Buffers - Google's data interchange format | ||
|
||
Copyright 2010 The Go Authors. All rights reserved. | ||
https://github.com/golang/protobuf | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following disclaimer | ||
in the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
-------------------------------------------------------------------- | ||
github.com/matttproud/golang_protobuf_extensions | ||
-------------------------------------------------------------------- | ||
Apache License | ||
|
||
-------NOTICE----- | ||
Copyright 2012 Matt T. Proud ([email protected]) | ||
|
||
-------------------------------------------------------------------- | ||
github.com/prometheus/client_model | ||
-------------------------------------------------------------------- | ||
Apache License | ||
|
||
-------NOTICE----- | ||
Data model artifacts for Prometheus. | ||
Copyright 2012-2015 The Prometheus Authors | ||
|
||
This product includes software developed at | ||
SoundCloud Ltd. (http://soundcloud.com/). | ||
|
||
-------------------------------------------------------------------- | ||
github.com/prometheus/common | ||
-------------------------------------------------------------------- | ||
Apache License | ||
|
||
-------NOTICE----- | ||
Common libraries shared by Prometheus Go components. | ||
Copyright 2015 The Prometheus Authors | ||
|
||
This product includes software developed at | ||
SoundCloud Ltd. (http://soundcloud.com/). | ||
|
||
-------------------------------------------------------------------- | ||
github.com/Microsoft/go-winio | ||
-------------------------------------------------------------------- | ||
|
@@ -2138,38 +2205,6 @@ The above copyright notice and this permission notice shall be included in all c | |
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
-------------------------------------------------------------------- | ||
github.com/matttproud/golang_protobuf_extensions | ||
-------------------------------------------------------------------- | ||
Apache License | ||
|
||
-------NOTICE----- | ||
Copyright 2012 Matt T. Proud ([email protected]) | ||
|
||
-------------------------------------------------------------------- | ||
github.com/prometheus/client_model | ||
-------------------------------------------------------------------- | ||
Apache License | ||
|
||
-------NOTICE----- | ||
Data model artifacts for Prometheus. | ||
Copyright 2012-2015 The Prometheus Authors | ||
|
||
This product includes software developed at | ||
SoundCloud Ltd. (http://soundcloud.com/). | ||
|
||
-------------------------------------------------------------------- | ||
github.com/prometheus/common | ||
-------------------------------------------------------------------- | ||
Apache License | ||
|
||
-------NOTICE----- | ||
Common libraries shared by Prometheus Go components. | ||
Copyright 2015 The Prometheus Authors | ||
|
||
This product includes software developed at | ||
SoundCloud Ltd. (http://soundcloud.com/). | ||
|
||
-------------------------------------------------------------------- | ||
github.com/google/uuid | ||
-------------------------------------------------------------------- | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,41 @@ | ||
- key: kubernetes | ||
title: Kubernetes info | ||
title: kubernetes | ||
description: > | ||
beta[] | ||
|
||
Kubernetes metadata added by the kubernetes processor | ||
short_config: false | ||
anchor: kubernetes-processor | ||
fields: | ||
- name: kubernetes.pod.name | ||
type: keyword | ||
description: > | ||
Kubernetes pod name | ||
- name: kubernetes | ||
type: group | ||
fields: | ||
- name: pod.name | ||
type: keyword | ||
description: > | ||
Kubernetes pod name | ||
|
||
- name: namespace | ||
type: keyword | ||
description: > | ||
Kubernetes namespace | ||
|
||
- name: kubernetes.namespace | ||
type: keyword | ||
description: > | ||
Kubernetes namespace | ||
- name: labels | ||
type: object | ||
description: > | ||
Kubernetes labels map | ||
|
||
- name: kubernetes.labels | ||
type: object | ||
description: > | ||
Kubernetes labels map | ||
- name: annotations | ||
type: object | ||
description: > | ||
Kubernetes annotations map | ||
|
||
- name: kubernetes.annotations | ||
type: object | ||
description: > | ||
Kubernetes annotations map | ||
- name: container.name | ||
type: keyword | ||
description: > | ||
Kubernetes container name | ||
|
||
- name: kubernetes.container.name | ||
type: keyword | ||
description: > | ||
Kubernetes container name | ||
- name: container.image | ||
type: keyword | ||
description: > | ||
Kubernetes container image |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ services: | |
- ${PWD}/module/jolokia/_meta/env | ||
- ${PWD}/module/kafka/_meta/env | ||
- ${PWD}/module/kibana/_meta/env | ||
- ${PWD}/module/kubernetes/_meta/env | ||
- ${PWD}/module/memcached/_meta/env | ||
- ${PWD}/module/mongodb/_meta/env | ||
- ${PWD}/module/mysql/_meta/env | ||
|
@@ -51,6 +52,8 @@ services: | |
jolokia: { condition: service_healthy } | ||
kafka: { condition: service_healthy } | ||
kibana: { condition: service_healthy } | ||
kubernetes: { condition: service_healthy } | ||
kube-state: { condition: service_started } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting that this one is set to started and not healthy There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. kube-state-metrics doesn't provide health service, but as soon as it starts it should work so we can live with this it seems |
||
memcached: { condition: service_healthy } | ||
mongodb: { condition: service_healthy } | ||
mysql: { condition: service_healthy } | ||
|
@@ -96,6 +99,22 @@ services: | |
file: ${ES_BEATS}/testing/environments/${TESTING_ENVIRONMENT}.yml | ||
service: kibana | ||
|
||
kubernetes: | ||
build: ${PWD}/module/kubernetes/_meta | ||
network_mode: host | ||
pid: host | ||
privileged: true | ||
volumes: | ||
- /:/rootfs:ro | ||
- /sys:/sys | ||
- /var/lib/docker:/var/lib/docker | ||
- /var/run:/var/run | ||
|
||
kube-state: | ||
build: | ||
context: ${PWD}/module/kubernetes/_meta/ | ||
dockerfile: Dockerfile.kube-state | ||
|
||
memcached: | ||
build: ${PWD}/module/memcached/_meta | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the generated exist in all beats?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could be the reason that the appveyor builds fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a fallback to common.yml, let's see if appveyor likes that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it worked, thanks!