- Notifications
You must be signed in to change notification settings - Fork545
Conversation
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
elasticmachine commentedJun 11, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
ChrsMark commentedJun 24, 2020
@exekias@mtojek this one seems to be completed in terms of "package migration". Would love your feedback here. Manual testing is also possible already (usinghttps://github.com/elastic/integrations-dev/issues/58) in order to verify that data are being collected and Dashboards work ok. We still need to verify what will happen with Agent's side regarding docs and manifests around the Deployment strategies on k8s. |
mtojek commentedJun 24, 2020
I think you can convert it to ordinary pull-request. Thanks for the contribution. |
exekias left a comment
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.
Didn't test it, but it looks good. I think we need to improve docs, left a comment on that regard
| @@ -0,0 +1,38 @@ | |||
| title: Kubernetes apiserver metrics | |||
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.
| title:Kubernetesapiserver metrics | |
| title:KubernetesAPI Server metrics |
| title: Kubernetes apiserver metrics | ||
| description: Collect Kubernetes apiserver metrics |
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.
| title:Kubernetesapiserver metrics | |
| description:Collect Kubernetesapiserver metrics | |
| title:KubernetesAPI Server metrics | |
| description:Collect KubernetesAPI Server metrics |
| This integration is used to collect metrics from | ||
| [Kubernetes clusters](https://kubernetes.io/). | ||
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'm missing many of the explanations that we have here:https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-kubernetes.html
It would be nice to provide good understanding on the variety of datasets that we have and how they need to be configured
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.
Nice catch! Added!
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
ChrsMark commentedJun 25, 2020
Updated the Docs and changed the sample json events with new ones according to the new indexing approach. |
| @@ -0,0 +1,2 @@ | |||
| - name: kubernetes | |||
| type: group | |||
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 that according to latest changes inimport-beat, pushed by@kaiyan-sheng , this empty file is not required.
| @@ -0,0 +1,2 @@ | |||
| - name: kubernetes | |||
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.
same here
| @@ -0,0 +1 @@ | |||
| metricsets: ["event"] | |||
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 it need any configuration options? There is even no "period" defined hence wondering.
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 added the configuration manually in themanifest.yml and missed that. 👍
| @@ -0,0 +1,44 @@ | |||
| title: Kubernetes Node metrics | |||
| release: experimental | |||
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.
Please adjusts all release fields. We will release all new packages as "beta".
| show_user: true | ||
| default: | ||
| - kube-state-metrics:8080 | ||
| title: Kubernetes state_resourcequota metrics |
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 you can update the title to a pleasant, human-readable form (no underscore).
packages/kubernetes/manifest.yml Outdated
| format_version: 1.0.0 | ||
| name: kubernetes | ||
| title: Kubernetes | ||
| version: 0.0.1 |
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.
version: 0.1.0
packages/kubernetes/manifest.yml Outdated
| requirement: | ||
| kibana: | ||
| versions: '>=7.3.0 <8.0.0' | ||
| elasticsearch: {} |
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.
This field (elasticsearch) can be removed.
packages/kubernetes/manifest.yml Outdated
| categories: | ||
| - metrics | ||
| release: beta | ||
| removable: true |
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.
This field too.
packages/kubernetes/manifest.yml Outdated
| description: Collect metrics from Kubernetes | ||
| inputs: | ||
| - type: kubernetes/metrics | ||
| title: Collect Kubernetes API Server, Container, Controller Manager, Event, Node, Pod, Proxy, Scheduler, state_container, state_cronjob, state_deployment, state_node, state_persistentvolume, state_persistentvolumeclaim, state_pod, state_replicaset, state_resourcequota, state_service, state_statefulset, state_storageclass, System and Volume metrics |
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 believe you can shorten this one :D
simply - Collect Kubernetes metrics?
packages/kubernetes/manifest.yml Outdated
| inputs: | ||
| - type: kubernetes/metrics | ||
| title: Collect Kubernetes API Server, Container, Controller Manager, Event, Node, Pod, Proxy, Scheduler, state_container, state_cronjob, state_deployment, state_node, state_persistentvolume, state_persistentvolumeclaim, state_pod, state_replicaset, state_resourcequota, state_service, state_statefulset, state_storageclass, System and Volume metrics | ||
| description: Collecting API Server, Container, Controller Manager, Event, Node, Pod, Proxy, Scheduler, state_container, state_cronjob, state_deployment, state_node, state_persistentvolume, state_persistentvolumeclaim, state_pod, state_replicaset, state_resourcequota, state_service, state_statefulset, state_storageclass, System and Volume metrics from Kubernetes |
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 that all captions, descriptions, etc. should present names which are human readable (no underscores).
mtojek commentedJun 26, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Just noticed on screenshots, please improve case sensitivity on screenshots. |
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
ChrsMark commentedJun 26, 2020
Thanks for the review@mtojek! Comments should be addressed now. |
mtojek left a comment
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.
Good job, Christos!
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
ChrsMark commentedJun 26, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@exekias@andresrc this integration is completed. Tested manually usingtesting/environments/kubernetes. Let me know if we can merge/ship it already or we want to wait for a |
mtojek commentedJun 30, 2020
exekias commentedJun 30, 2020
++ Let's get this in. I think it would be nice to follow up with docs on the Agent side on how to deploy in Kubernetes Merging this on behalf of@ChrsMark, as he is off |
Uh oh!
There was an error while loading.Please reload this page.
ImplementingKubernetes package migration
Important Notes:
container,system,node,pod,volumemetricsets require access to the Kubelet API. Usually these are enabled when Metricbeat is deployed as Daemonset on k8s nodes.state_*metricsets require the deploymentkube-state-metricson the k8s cluster in order to retrieve metrics from it.apiserver,scheduler,proxyandcontrollermanagerrequire access to each component of the k8s cluster accordingly.Wondering how all these would be possible in combination with
agent. Do we need to define how agent will run in k8s (deployment, daemonset) in order to make it work?@exekias do you have anything in mind about this?Docs:https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-module-kubernetes.html
Migration Steps:
docker-compose -f snapshot.yml -f local.yml up --force-recreatePACKAGES=kubernetes mage ImportBeatsdocs/README.mdScreenshots
Manual Testing