Add documentation for k8s alerts installation - #5364
Conversation
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>
🌐 Coverage report
|
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
| "must": [ | ||
| { | ||
| "query_string": { | ||
| "query": "event.module:kubernetes AND metricset.name: apiserver AND NOT (kubernetes.apiserver.request.verb: WATCH or kubernetes.apiserver.request.verb: CONNECT)", |
There was a problem hiding this comment.
Instead of event.module:kubernetes AND metricset.name: apiserver we can use data_stream.dataset: kubernetes.apiserver the same way we do in the dashboards.
There was a problem hiding this comment.
This comment applies for all.
|
How can a user access these alerts suggestions? Should we add a link in the kubernetes integration README ? |
Those would be listed at https://docs.elastic.co/integrations/kubernetes like the docs' pages for the data_streams families. I can check if I can link them somehow but maybe the README is not a good place? Maybe https://www.elastic.co/guide/en/fleet/master/running-on-kubernetes-managed-by-fleet.html or a similar page is a better place to put them? |
|
Wondering if writing a blog can be an option to advertise the ongoing work If we go for a blog a new story should be created. |
Yes a blogpost is planned for this as listed in #4997. |
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
| "aggs": { | ||
| "my_rate": { | ||
| "rate": { | ||
| "field": "kubernetes.pod.network.rx.errors", |
There was a problem hiding this comment.
| "field": "kubernetes.pod.network.rx.errors", | |
| "field": "kubernetes.pod.network.tx.errors", |
| }, | ||
| "condition": { | ||
| "array_compare": { | ||
| "ctx.payload.aggregations.rx_error_rates.buckets": { |
There was a problem hiding this comment.
| "ctx.payload.aggregations.rx_error_rates.buckets": { | |
| "ctx.payload.aggregations.tx_error_rates.buckets": { |
| }, | ||
| "actions": { | ||
| "log_hits": { | ||
| "foreach": "ctx.payload.aggregations.rx_error_rates.buckets", |
There was a problem hiding this comment.
| "foreach": "ctx.payload.aggregations.rx_error_rates.buckets", | |
| "foreach": "ctx.payload.aggregations.tx_error_rates.buckets", |
| "foreach": "ctx.payload.aggregations.rx_error_rates.buckets", | ||
| "max_iterations": 500, | ||
| "logging": { | ||
| "text": "Kubernetes Pod found with high rx error rate: {{ctx.payload.key}} -> {{ctx.payload.avg_minute_rate.value}}" |
There was a problem hiding this comment.
| "text": "Kubernetes Pod found with high rx error rate: {{ctx.payload.key}} -> {{ctx.payload.avg_minute_rate.value}}" | |
| "text": "Kubernetes Pod found with high tx error rate: {{ctx.payload.key}} -> {{ctx.payload.avg_minute_rate.value}}" |
| "xpack": { | ||
| "type": "json" | ||
| }, | ||
| "name": "Pod RX Error Rate" |
There was a problem hiding this comment.
| "name": "Pod RX Error Rate" | |
| "name": "Pod TX Error Rate" |
| @@ -0,0 +1,102 @@ | |||
| ## PID Pressure Kubernetes Node alert | |||
|
|
|||
| In order to install the PID Pressure Node alert run the following: | |||
There was a problem hiding this comment.
Can you provide a link for PID Pressure explanation?
| @@ -0,0 +1,79 @@ | |||
| ## Kubernetes Kubernetes Shipped Docs alert | |||
|
|
|||
| In order to install the Kubernetes Shipped Docs alert run the following: | |||
There was a problem hiding this comment.
Can you provide one sentence why we need this alert?
| @@ -0,0 +1,102 @@ | |||
| ## Unschedulable Kubernetes Node alert | |||
|
|
|||
| In order to install the Unschedulable Node alert run the following: | |||
There was a problem hiding this comment.
Also a link for what unsceduble nodes are can be handy
@ChrsMark I agree about the blogspot. Regarding opening a PR to the docs team to include those alerts in the official documentation I would expect this to be also listed in the #4997 so that it can be tracked. |
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
|
@gizas @MichaelKatsoulis thanks for the feedback folks! I think your comments are now covered. Feel free to have another look when you have the time. |
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
|
Package kubernetes - 1.32.0 containing this change is available at https://epr.elastic.co/search?package=kubernetes |
This PR adds basic alert samples for Kubernetes clusters. The alerts for now are suggested inside the documentation pages but the long term solution would be to add them as part of the package's assets so that they can be installed through Kibana/Fleet.
More details and the related discussions can be found at #4997.