Fix visualizations on the Kubernetes overview dashboard#2151
Conversation
…ide_index_pattern Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
|
@tetianakravchenko I noticed there is another visualisation with |
|
@MichaelKatsoulis for consistency I can adjust this visualisation as well. the reason why it works: it is defined here - code |
Ok. Thanks for the explanation. I would add it for consistency as you said. |
packages/kubernetes/changelog.yml
Outdated
| # newer versions go on top | ||
| - version: "1.4.1" | ||
| changes: | ||
| - description: Fix visualizations on the Kubernetes overview dashboard |
There was a problem hiding this comment.
nit: The description does not reflect what was fixed
…description Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
| "seperate_axis": 0, | ||
| "series_index_pattern": "*", | ||
| "series_interval": "10s", | ||
| "series_time_field": "@timestamp", |
There was a problem hiding this comment.
@MichaelKatsoulis @ChrsMark fyi: I've also removed this field to align all 3 visualisations: Desired pods, Available Pods and Unavailable Pods.
as I understand it is a default value anyway:

(update) note: this field was removed from 2 out of 3 visualisations: Available pods [Metrics Kubernetes] and Desired pods [Metrics Kubernetes] - there was no such field in Unavailable pods [Metrics Kubernetes]
There was a problem hiding this comment.
Hmm, I'm not sure about what this field is doing. Could you provide more context?
There was a problem hiding this comment.
@ChrsMark not sure where is the best place to verify: from https://github.com/elastic/kibana/blob/main/src/plugins/vis_types/timeseries/server/lib/vis_data/get_interval_and_timefield.ts#L28: timeField will be set to series.series_time_field if override_index_pattern is set to true, in other case - will be set to panel.time_field, which is set for visualisations, touched in this PR (one of them:
There was a problem hiding this comment.
Ok, but why we remove it here? Is it related to to the issue that this PR solves or it is just an extra improvement? I'm trying to understand what will actually be different with this change and why it was like this in the past.
There was a problem hiding this comment.
no, it is not related to the issue. It was removed to make those 3 visualisations configs consistent:

see this comment - so now Desired pods, Available pods and Unavailable pods have the same settings: no data view override, no override of index, no override of time field
There was a problem hiding this comment.
@ChrsMark I am not sure why it was added here initially, see initial PR #70, all those setting seems to be not changed after the first PR:
"Unavailable pods [Metrics Kubernetes] ECS": has override enabled, neither series_time_field nor series_index_pattern are set
"Available pods [Metrics Kubernetes] ECS": has override enabled, both "series_index_pattern" and "series_time_field" are set
"Desired pods [Metrics Kubernetes] ECS": has override enabled. "series_time_field": "@timestamp" is set, no series_index_pattern
maybe you remember why it was set this way?
There was a problem hiding this comment.
Gotcha, thanks for elaborating on this! About history, the dashboards have been imported from Beats so this one should be there for quite a long.
…rd; align visualisations with changes in elastic/integrations#2151 Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
…rd (#29676) * Remove overriding of index pattern on the Kubernetes overview dashboard; align visualisations with changes in elastic/integrations#2151 Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> * add PR number in changelog Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
…rd (#29676) * Remove overriding of index pattern on the Kubernetes overview dashboard; align visualisations with changes in elastic/integrations#2151 Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> * add PR number in changelog Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> (cherry picked from commit 896b7e4)
…ernetes overview dashboard (#29792) * Remove overriding of index pattern on the Kubernetes overview dashboard (#29676) * Remove overriding of index pattern on the Kubernetes overview dashboard; align visualisations with changes in elastic/integrations#2151 Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> * add PR number in changelog Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> (cherry picked from commit 896b7e4) * Update CHANGELOG.next.asciidoc Co-authored-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

Signed-off-by: Tetiana Kravchenko tetiana.kravchenko@elastic.co
What does this PR do?
There are two visualizations on the

[Metrics Kubernetes] Overview dashboardwith 2 broken visualizations (Desired PodsandUnavailable Pods), reason for that: index pattern is overridden (they have "yes" checked), butseries_Index_patternis not specified:(note that in the picture as an index_pattern was picked
logs-*)index pattern shouldn't be overridden.
Checklist
changelog.ymlfile.manifest.ymlfile to point to the latest Elastic stack release (e.g.^7.13.0).Author's Checklist
How to test this PR locally
Related issues
Screenshots
Add here screenshots presenting:
local setup: