elastic / elastic/integrations

[Kubernetes]: [Metrics] Kubernetes Overview dashboard aggregation leads to max_buckets exceed

Open
#11,464 3 comments 0 reactions 0 assignees View on GitHub
Integration:kubernetes needs:triage Team:obs-ds-hosted-services
Dominant language
Handlebars
Stars
333
Forks
647
Avg merge
3d 4h
Merged PRs (30d)
209

Description

### Integration Name

Kubernetes [kubernetes]

### Dataset Name

_No response_

### Integration Version

1.68.1

### Agent Version

8.15.2

### Agent Output Type

elasticsearch

### Elasticsearch Version

8.15.2

### OS Version and Architecture

RHEL 8.9

### Software/API Version

_No response_

### Error Message

Visualization: error while executing search
Control element: Internal Server Error (at least sometimes, as I couldn't reproduce for screenshot).

The Elasticsearch log prints out this message:
![Image](https://github.com/user-attachments/assets/f092df87-879d-47fe-b8bb-1c355a32f781)

### Event Original

_No response_

### What did you do?

After some of the previous integration updates (presumably https://github.com/elastic/integrations/pull/10593), the newly added visualizations exceed the bucket limit, and break also the filter control element (sometimes, as I couldn't reproduce when creating the screenshot.). The control element for "Cluster Name" then said: "Internal Server Error.

### What did you see?

A uncompletely loaded dashboard like this:
![Image](https://github.com/user-attachments/assets/49ac3ea0-5c7d-433a-ab6c-710d6c5f2251)

### What did you expect to see?

A fully loaded dashboard like this:

![Image](https://github.com/user-attachments/assets/950981f5-59a6-4d33-8c90-9852ac7ca80b)

### Anything else?

Important side node: The time range in all the above screenshots is past 15 min. Longer timeranges not even considered.

Also: Increasing the max_bucket setting helped. But only after increasing it excessively to > 100k and < 1 mio (I didn't try any in between).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.