-
Notifications
You must be signed in to change notification settings - Fork 476
Fix visualizations on the Kubernetes overview dashboard #2151
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
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
@@ -1,4 +1,9 @@ | |||
# 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: The description does not reflect what was fixed
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.
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.
👍🏼
…description Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
"series_interval": "10s", | ||
"series_time_field": "@timestamp", |
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I'm not sure about what this field is doing. Could you provide more context?
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.
@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:
Line 75 in 2978a9f
"time_field": "@timestamp", |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 dashboard
with 2 broken visualizations (Desired Pods
andUnavailable Pods
), reason for that: index pattern is overridden (they have "yes" checked), butseries_Index_pattern
is not specified:(note that in the picture as an index_pattern was picked
logs-*
)index pattern shouldn't be overridden.
Checklist
changelog.yml
file.manifest.yml
file 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: