-
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 |
---|---|---|
@@ -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!