Your window into the Elastic Stack
Find a file
Shahzad fcc857c2f9
[8.6] [Synthetics] Update monitor detail data on refresh (#145468) (#146319)
# Backport

This will backport the following commits from `main` to `8.6`:
- [[Synthetics] Update monitor detail data on refresh
(#145468)](https://github.com/elastic/kibana/pull/145468)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Justin
Kambic","email":"jk@elastic.co"},"sourceCommit":{"committedDate":"2022-11-23T19:20:42Z","message":"[Synthetics]
Update monitor detail data on refresh (#145468)\n\n##
Summary\r\n\r\nResolves #143662.\r\n\r\nResolves #144367.\r\n\r\nThis
patch will add refresh capabilities to the monitor detail page
and\r\nits child views. Today, the page needs to be hard-refreshed in
order for\r\nthis to work.\r\n\r\n### Arch changes\r\n\r\n#### App-wide
refresh interval\r\n\r\nTo simplify how auto-refreshing works, I
have\r\n[extracted](https://github.com/elastic/kibana/pull/145468/files#diff-09f3a6de5b54c7d3933df933d83e963f6ff6a5c18a3d83238bd658623595fe35L47)\r\nthe
existing `interval` logic from the Overview page and put it into
the\r\n[`RefreshContext`](https://github.com/elastic/kibana/pull/145468/files#diff-660f9a1ed6f641662eff6682448bac7d1b167b4ea518ddc43634192b2959be1fR36)\r\nitself.
I am not overly fond of this solution, so if someone has a\r\nbetter
suggestion for how to handle this, I am open to
recommendations.\r\n\r\nThis refresh context also ties into the date
picker components we use\r\nfor some of these pages, so everything
should continue to work\r\nseamlessly, but there's going to be a
conflicting auto-refresh between\r\ndate pickers and the internal
context value itself. It might be\r\nworthwhile for us to discuss this
in a tech sync and have a dedicated\r\nenhancement.\r\n\r\n#### New
absolute date formatting hook\r\n\r\nI've introduced a [new hook for
changing relative date values into\r\nabsolute
ISO\r\nstrings](https://github.com/elastic/kibana/pull/145468/files#diff-48912058ac736ca8aece834bb50369cc5589b94b9c8b2b3e418e9d7690241525).\r\nThis
is because we are making extensive use of Exploratory
View\r\nEmbeddables, which do not have any kind of refresh mechanism
exposed.\r\nThe simplest way to get these to refresh when our
`lastRefresh` field\r\nupdates is to supply the embeddable with absolute
values, which\r\ncorrespond directly to the existing `from` and `to`
fields we're already\r\nusing.\r\n\r\n#### Existing hook
updates\r\n\r\nI have tried to avoid manipulating the existing behavior
of our fetch\r\nhooks, but there were a few cases where I added optional
parameters to\r\nthem to support refresh functionality. It's worth extra
attention to\r\nmake sure we're not adding something that we should
avoid for these\r\nhooks.\r\n\r\n### Testing this PR\r\n\r\nThe best way
to test this PR is to configure a monitor and open the\r\ndetail pages
for `Overview`, `History`, and `Errors`. Let your monitor\r\nrun for
some time and look at all the visualizations, while avoiding a\r\nhard
refresh. If you run this patch from source, you can also modify
the\r\n[interval](https://github.com/elastic/kibana/pull/145468/files#diff-660f9a1ed6f641662eff6682448bac7d1b167b4ea518ddc43634192b2959be1fR39)\r\nfrom
`30s` to some smaller value if you want to make sure things
are\r\nupdating where they should more
easily.","sha":"06b7596810a285868db58c9040da868ff8ab6e4d","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:uptime","release_note:skip","ci:cloud-deploy","v8.6.0","v8.7.0"],"number":145468,"url":"https://github.com/elastic/kibana/pull/145468","mergeCommit":{"message":"[Synthetics]
Update monitor detail data on refresh (#145468)\n\n##
Summary\r\n\r\nResolves #143662.\r\n\r\nResolves #144367.\r\n\r\nThis
patch will add refresh capabilities to the monitor detail page
and\r\nits child views. Today, the page needs to be hard-refreshed in
order for\r\nthis to work.\r\n\r\n### Arch changes\r\n\r\n#### App-wide
refresh interval\r\n\r\nTo simplify how auto-refreshing works, I
have\r\n[extracted](https://github.com/elastic/kibana/pull/145468/files#diff-09f3a6de5b54c7d3933df933d83e963f6ff6a5c18a3d83238bd658623595fe35L47)\r\nthe
existing `interval` logic from the Overview page and put it into
the\r\n[`RefreshContext`](https://github.com/elastic/kibana/pull/145468/files#diff-660f9a1ed6f641662eff6682448bac7d1b167b4ea518ddc43634192b2959be1fR36)\r\nitself.
I am not overly fond of this solution, so if someone has a\r\nbetter
suggestion for how to handle this, I am open to
recommendations.\r\n\r\nThis refresh context also ties into the date
picker components we use\r\nfor some of these pages, so everything
should continue to work\r\nseamlessly, but there's going to be a
conflicting auto-refresh between\r\ndate pickers and the internal
context value itself. It might be\r\nworthwhile for us to discuss this
in a tech sync and have a dedicated\r\nenhancement.\r\n\r\n#### New
absolute date formatting hook\r\n\r\nI've introduced a [new hook for
changing relative date values into\r\nabsolute
ISO\r\nstrings](https://github.com/elastic/kibana/pull/145468/files#diff-48912058ac736ca8aece834bb50369cc5589b94b9c8b2b3e418e9d7690241525).\r\nThis
is because we are making extensive use of Exploratory
View\r\nEmbeddables, which do not have any kind of refresh mechanism
exposed.\r\nThe simplest way to get these to refresh when our
`lastRefresh` field\r\nupdates is to supply the embeddable with absolute
values, which\r\ncorrespond directly to the existing `from` and `to`
fields we're already\r\nusing.\r\n\r\n#### Existing hook
updates\r\n\r\nI have tried to avoid manipulating the existing behavior
of our fetch\r\nhooks, but there were a few cases where I added optional
parameters to\r\nthem to support refresh functionality. It's worth extra
attention to\r\nmake sure we're not adding something that we should
avoid for these\r\nhooks.\r\n\r\n### Testing this PR\r\n\r\nThe best way
to test this PR is to configure a monitor and open the\r\ndetail pages
for `Overview`, `History`, and `Errors`. Let your monitor\r\nrun for
some time and look at all the visualizations, while avoiding a\r\nhard
refresh. If you run this patch from source, you can also modify
the\r\n[interval](https://github.com/elastic/kibana/pull/145468/files#diff-660f9a1ed6f641662eff6682448bac7d1b167b4ea518ddc43634192b2959be1fR39)\r\nfrom
`30s` to some smaller value if you want to make sure things
are\r\nupdating where they should more
easily.","sha":"06b7596810a285868db58c9040da868ff8ab6e4d"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145468","number":145468,"mergeCommit":{"message":"[Synthetics]
Update monitor detail data on refresh (#145468)\n\n##
Summary\r\n\r\nResolves #143662.\r\n\r\nResolves #144367.\r\n\r\nThis
patch will add refresh capabilities to the monitor detail page
and\r\nits child views. Today, the page needs to be hard-refreshed in
order for\r\nthis to work.\r\n\r\n### Arch changes\r\n\r\n#### App-wide
refresh interval\r\n\r\nTo simplify how auto-refreshing works, I
have\r\n[extracted](https://github.com/elastic/kibana/pull/145468/files#diff-09f3a6de5b54c7d3933df933d83e963f6ff6a5c18a3d83238bd658623595fe35L47)\r\nthe
existing `interval` logic from the Overview page and put it into
the\r\n[`RefreshContext`](https://github.com/elastic/kibana/pull/145468/files#diff-660f9a1ed6f641662eff6682448bac7d1b167b4ea518ddc43634192b2959be1fR36)\r\nitself.
I am not overly fond of this solution, so if someone has a\r\nbetter
suggestion for how to handle this, I am open to
recommendations.\r\n\r\nThis refresh context also ties into the date
picker components we use\r\nfor some of these pages, so everything
should continue to work\r\nseamlessly, but there's going to be a
conflicting auto-refresh between\r\ndate pickers and the internal
context value itself. It might be\r\nworthwhile for us to discuss this
in a tech sync and have a dedicated\r\nenhancement.\r\n\r\n#### New
absolute date formatting hook\r\n\r\nI've introduced a [new hook for
changing relative date values into\r\nabsolute
ISO\r\nstrings](https://github.com/elastic/kibana/pull/145468/files#diff-48912058ac736ca8aece834bb50369cc5589b94b9c8b2b3e418e9d7690241525).\r\nThis
is because we are making extensive use of Exploratory
View\r\nEmbeddables, which do not have any kind of refresh mechanism
exposed.\r\nThe simplest way to get these to refresh when our
`lastRefresh` field\r\nupdates is to supply the embeddable with absolute
values, which\r\ncorrespond directly to the existing `from` and `to`
fields we're already\r\nusing.\r\n\r\n#### Existing hook
updates\r\n\r\nI have tried to avoid manipulating the existing behavior
of our fetch\r\nhooks, but there were a few cases where I added optional
parameters to\r\nthem to support refresh functionality. It's worth extra
attention to\r\nmake sure we're not adding something that we should
avoid for these\r\nhooks.\r\n\r\n### Testing this PR\r\n\r\nThe best way
to test this PR is to configure a monitor and open the\r\ndetail pages
for `Overview`, `History`, and `Errors`. Let your monitor\r\nrun for
some time and look at all the visualizations, while avoiding a\r\nhard
refresh. If you run this patch from source, you can also modify
the\r\n[interval](https://github.com/elastic/kibana/pull/145468/files#diff-660f9a1ed6f641662eff6682448bac7d1b167b4ea518ddc43634192b2959be1fR39)\r\nfrom
`30s` to some smaller value if you want to make sure things
are\r\nupdating where they should more
easily.","sha":"06b7596810a285868db58c9040da868ff8ab6e4d"}}]}]
BACKPORT-->

Co-authored-by: Justin Kambic <jk@elastic.co>
2022-11-24 10:19:35 -07:00
.buildkite skip src/core/server/integration_tests/ui_settings/jest.integration.config.js (#145646) 2022-11-18 06:46:44 -06:00
.ci Bump node to 16.18.1 (#144751) 2022-11-08 10:16:10 -06:00
.github chore(NA): remove codeowners file 2022-11-16 16:44:58 +00:00
api_docs [api-docs] 2022-11-16 Daily api_docs build (#145320) 2022-11-16 00:50:40 -05:00
config [Unified Search] Move autocomplete logic to unified search plugin (#129977) 2022-04-22 11:02:56 +05:00
dev_docs [Saved Objects] Add documentation covering hidden saved object types (#144647) 2022-11-08 16:42:02 +01:00
docs [8.6] [ResponseOps][Actions] Removing extra sentence in opsgenie docs (#146072) (#146084) 2022-11-22 18:27:34 -05:00
examples [ts/checkProjects] validate extends of all ts projects (#145176) 2022-11-16 08:57:51 -07:00
kbn_pm [kbn] rename test command to x 2022-11-08 15:01:58 -06:00
legacy_rfcs rename @elastic/* packages to @kbn/* (#138957) 2022-08-18 08:54:42 -07:00
licenses Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
packages [8.6] [@kbn/handlebars] housekeeping (#146174) (#146293) 2022-11-24 08:26:28 -07:00
plugins [dev/cli] ensure plugins/ and all watch source dirs exist (#78973) 2020-09-30 10:20:44 -07:00
scripts [8.6] [kbn-pm] Add uid check (#145769) (#145777) 2022-11-18 15:37:40 -07:00
src [8.6] [Lens][Aggregations] Propagate query syntax error when using histogram agg (#146202) (#146299) 2022-11-24 10:07:45 -07:00
test [8.6] [Discover] Field stats should not ignore pinned filters (#145332) (#146128) 2022-11-23 05:06:58 -07:00
typings [Osquery] Replace js-sql-parser (#128714) 2022-05-18 12:58:07 +02:00
vars [ts] ts refs cache was removed, remove capture task 2022-10-28 14:27:18 -05:00
x-pack [8.6] [Synthetics] Update monitor detail data on refresh (#145468) (#146319) 2022-11-24 10:19:35 -07:00
.backportrc.json Updates backport config for v8.6 (#141302) 2022-09-21 13:22:40 -07:00
.bazelignore Bazel config maintenance (#135442) 2022-07-05 10:20:26 -05:00
.bazeliskversion chore(NA): upgrade bazelisk into v1.11.0 (#125070) 2022-02-09 20:43:57 +00:00
.bazelrc chore(NA): use new and more performant BuildBuddy servers (#130350) 2022-04-18 02:01:38 +01:00
.bazelrc.common chore(NA): move Bazel --progress_report_interval from common to build option (#144703) 2022-11-07 15:17:02 +00:00
.bazelversion chore(NA): revert bazel upgrade for v5.2.0 (#135096) 2022-06-24 03:57:21 +01:00
.browserslistrc [browserslist] remove unnecessary browsers (#89186) 2021-01-25 16:30:18 -07:00
.editorconfig .editorconfig MDX files should follow the same rules as MD (#96942) 2021-04-13 11:40:42 -04:00
.eslintignore [POC] Add Gainsight shipper for cloud (#141132) 2022-10-19 13:54:10 +01:00
.eslintrc.js [Cases] enforce type imports for entire cases folder (#143399) 2022-10-17 12:07:46 +03:00
.gitattributes
.gitignore chore(NA): include .ijwb folder into the .gitignore file (#144755) 2022-11-08 00:27:54 +00:00
.i18nrc.json [Files] move to src (#144044) 2022-10-31 06:46:52 -07:00
.node-version Bump node to 16.18.1 (#144751) 2022-11-08 10:16:10 -06:00
.npmrc chore(NA): assure puppeteer_skip_chromium_download is applied across every yarn install situation (#88346) 2021-01-14 18:00:23 +00:00
.nvmrc Bump node to 16.18.1 (#144751) 2022-11-08 10:16:10 -06:00
.prettierignore [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
.prettierrc
.stylelintignore chore(NA): stop grouping bazel out symlink folders (#96066) 2021-04-01 14:16:14 -05:00
.stylelintrc Bump stylelint to ^14 (#136693) 2022-07-20 10:11:00 -05:00
.telemetryrc.json [Usage collection] Collect non-default kibana configs (#97368) 2021-04-20 11:02:27 -04:00
.yarnrc chore(NA): manage npm dependencies within bazel (#92864) 2021-03-03 12:37:20 -05:00
BUILD.bazel [build_ts_refs] improve caches, allow building a subset of projects (#107981) 2021-08-10 22:12:45 -07:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md (#87439) 2021-02-23 09:01:51 +01:00
CONTRIBUTING.md Update doc slugs to improve analytic tracking, move to appropriate folders (#113630) 2021-10-04 13:36:45 -04:00
FAQ.md Fix small typos in the root md files (#134609) 2022-06-23 09:36:11 -05:00
fleet_packages.json [Synthetics] bump bundled package to 0.10.3 (#142650) 2022-10-06 09:26:13 -04:00
github_checks_reporter.json
Jenkinsfile [CI] Disable tracked branch jobs in Jenkins, enable reporting in Buildkite (#112604) 2021-09-21 11:31:15 -04:00
kibana.d.ts fix all violations 2022-04-16 01:37:30 -05:00
LICENSE.txt Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
nav-kibana-dev.docnav.json [Files] Update the files tutorial after new components (#145356) 2022-11-16 15:44:03 +01:00
NOTICE.txt [POC] Add Gainsight shipper for cloud (#141132) 2022-10-19 13:54:10 +01:00
package.json [8.6] Update dependency selenium-webdriver to ^4.6.1 (main) (#146045) (#146229) 2022-11-23 14:44:15 -07:00
preinstall_check.js Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
README.md [README] Update version Compatibility with Elasticsearch (#116040) 2022-01-10 10:31:21 -05:00
renovate.json Rename all vis-editors and datavis to visualizations (#144589) 2022-11-05 19:16:20 -04:00
RISK_MATRIX.mdx Add "Risk Matrix" section to the PR template (#100649) 2021-06-02 14:43:47 +02:00
SECURITY.md Add security policy to the Kibana repository (#85407) 2020-12-10 09:26:00 -05:00
STYLEGUIDE.mdx [styleguide] update path to scss theme (#140742) 2022-09-15 10:41:14 -04:00
tsconfig.base.json Migrate server-side Root and Server to packages (#144990) 2022-11-15 03:11:37 -07:00
tsconfig.bazel.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) 2021-08-10 22:12:45 -07:00
tsconfig.browser.json Introduce TS incremental builds & move src/test_utils to TS project (#76082) 2020-09-03 14:20:04 +02:00
tsconfig.browser_bazel.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) 2021-08-10 22:12:45 -07:00
tsconfig.json Adds base implementation of the Kibana Health Gateway. (#141172) 2022-11-07 09:14:42 -07:00
TYPESCRIPT.md Fix small typos in the root md files (#134609) 2022-06-23 09:36:11 -05:00
versions.json chore(NA): update versions after v8.5.2 bump (#145255) 2022-11-16 02:34:47 +00:00
WORKSPACE.bazel Bump node to 16.18.1 (#144751) 2022-11-08 10:16:10 -06:00
yarn.lock [8.6] Update dependency selenium-webdriver to ^4.6.1 (main) (#146045) (#146229) 2022-11-23 14:44:15 -07:00

Kibana

Kibana is your window into the Elastic Stack. Specifically, it's a browser-based analytics and search dashboard for Elasticsearch.

Getting Started

If you just want to try Kibana out, check out the Elastic Stack Getting Started Page to give it a whirl.

If you're interested in diving a bit deeper and getting a taste of Kibana's capabilities, head over to the Kibana Getting Started Page.

Using a Kibana Release

If you want to use a Kibana release in production, give it a test run, or just play around:

Building and Running Kibana, and/or Contributing Code

You might want to build Kibana locally to contribute some code, test out the latest features, or try out an open PR:

Documentation

Visit Elastic.co for the full Kibana documentation.

For information about building the documentation, see the README in elastic/docs.

Version Compatibility with Elasticsearch

Ideally, you should be running Elasticsearch and Kibana with matching version numbers. If your Elasticsearch has an older version number or a newer major number than Kibana, then Kibana will fail to run. If Elasticsearch has a newer minor or patch number than Kibana, then the Kibana Server will log a warning.

Note: The version numbers below are only examples, meant to illustrate the relationships between different types of version numbers.

Situation Example Kibana version Example ES version Outcome
Versions are the same. 7.15.1 7.15.1 💚 OK
ES patch number is newer. 7.15.0 7.15.1 ⚠️ Logged warning
ES minor number is newer. 7.14.2 7.15.0 ⚠️ Logged warning
ES major number is newer. 7.15.1 8.0.0 🚫 Fatal error
ES patch number is older. 7.15.1 7.15.0 ⚠️ Logged warning
ES minor number is older. 7.15.1 7.14.2 🚫 Fatal error
ES major number is older. 8.0.0 7.15.1 🚫 Fatal error

Questions? Problems? Suggestions?

  • If you've found a bug or want to request a feature, please create a GitHub Issue. Please check to make sure someone else hasn't already created an issue for the same topic.
  • Need help using Kibana? Ask away on our Kibana Discuss Forum and a fellow community member or Elastic engineer will be glad to help you out.