Skip to content

Conversation

tetianakravchenko
Copy link
Contributor

@tetianakravchenko tetianakravchenko commented Nov 10, 2021

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 and Unavailable Pods), reason for that: index pattern is overridden (they have "yes" checked), but series_Index_pattern is not specified:
Screenshot 2021-11-11 at 09 57 40
(note that in the picture as an index_pattern was picked logs-*)

index pattern shouldn't be overridden.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • If I'm introducing a new feature, I have modified the Kibana version constraint in my package's 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:

  • Kibana UI forms presenting configuration options exposed by the integration:
    local setup:

Screenshot 2021-11-11 at 14 46 39

…ide_index_pattern

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
@elasticmachine
Copy link

elasticmachine commented Nov 10, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-11-11T14:28:01.713+0000

  • Duration: 31 min 30 sec

  • Commit: 2978a9f

Test stats 🧪

Test Results
Failed 0
Passed 114
Skipped 0
Total 114

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
@MichaelKatsoulis
Copy link
Contributor

@tetianakravchenko I noticed there is another visualisation with override_index_pattern: 1. It is the Available pods. Why not changing that one too?

@tetianakravchenko
Copy link
Contributor Author

tetianakravchenko commented Nov 11, 2021

@MichaelKatsoulis for consistency I can adjust this visualisation as well. the reason why it works:
index pattern is actually defined:
Screenshot 2021-11-11 at 10 02 08

it is defined here - code

@MichaelKatsoulis
Copy link
Contributor

@MichaelKatsoulis for consistency I can adjust this visualisation as well. the reason why it works: index pattern is

Ok. Thanks for the explanation. I would add it for consistency as you said.

@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.4.1"
changes:
- description: Fix visualizations on the Kubernetes overview dashboard
Copy link
Contributor

@MichaelKatsoulis MichaelKatsoulis Nov 11, 2021

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@ChrsMark ChrsMark left a 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",
Copy link
Contributor Author

@tetianakravchenko tetianakravchenko Nov 11, 2021

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:
Screenshot 2021-11-11 at 14 53 19

(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]

Copy link
Member

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?

Copy link
Contributor Author

@tetianakravchenko tetianakravchenko Nov 11, 2021

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:

)

Copy link
Member

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.

Copy link
Contributor Author

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:
Screenshot 2021-11-15 at 09 57 40
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

Copy link
Contributor Author

@tetianakravchenko tetianakravchenko Nov 15, 2021

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?

Copy link
Member

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.

@tetianakravchenko tetianakravchenko merged commit 4f294fd into elastic:master Nov 15, 2021
@tetianakravchenko tetianakravchenko deleted the fix-28792_kubernetes_overview branch November 15, 2021 11:16
tetianakravchenko added a commit to tetianakravchenko/beats that referenced this pull request Jan 4, 2022
…rd; align visualisations with changes in elastic/integrations#2151

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
tetianakravchenko added a commit to elastic/beats that referenced this pull request Jan 11, 2022
…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>
mergify bot pushed a commit to elastic/beats that referenced this pull request Jan 11, 2022
…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)
tetianakravchenko added a commit to elastic/beats that referenced this pull request Jan 17, 2022
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visualizations on the Kubernetes overview dashboard override index but shouldn't
4 participants