Skip to content
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

Initial work on uptime for observability homepage API #70135

Merged
merged 8 commits into from
Jul 1, 2020

Conversation

andrewvc
Copy link
Contributor

@andrewvc andrewvc commented Jun 26, 2020

Resolves #69716 by adding a data connector for uptime data.

Testing

You can test this by adding following code

const getData = async () => {
    const params = {
      startTime: '2020-06-29T11:38:23.747Z',
      endTime: '2020-06-29T12:08:23.748Z',
      bucketSize: '30s',
    };
    const uptimeData = await getDataHandler('uptime')?.fetchData(params);
    console.log('####', { uptimeData });
  };
  getData();

in file https://github.com/elastic/kibana/blob/master/x-pack/plugins/observability/public/application/index.tsx#L15

@andrewvc andrewvc requested a review from a team as a code owner June 26, 2020 22:50
@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Jun 26, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@andrewvc andrewvc added enhancement New value added to drive a business result release_note:skip Skip the PR/issue when compiling release notes v7.9.0 labels Jun 26, 2020
@@ -63,6 +67,58 @@ export class UptimePlugin
});
}

// This doesn't actually work
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @andrewvc I checked out your branch and I didn't see any problem. Can you tell me why you mentioned that it doesn't work?

import { fetchPingHistogram, fetchSnapshotCount } from '../state/api';
import { UptimeFetchDataResponse } from '../../../observability/public/typings/fetch_data_response';

export async function fetchUptimeOverviewData({ startTime, endTime, bucketSize }) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed you're not using the bucketSize, could you tell me why? We want to show the same information in the x-axis for all charts in the Observability page.

Copy link
Contributor

Choose a reason for hiding this comment

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

@cauemarcondes i have updated to use the bucketSize

Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@justinkambic justinkambic left a comment

Choose a reason for hiding this comment

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

Had a question about some of the new server code this change is adding. If the acceptance criteria is that I'm able to see data when executing the code included in the testing instructions then this otherwise is looking good to me.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@shahzad31 shahzad31 requested review from justinkambic and removed request for shahzad31 June 30, 2020 17:30
Copy link
Contributor

@justinkambic justinkambic left a comment

Choose a reason for hiding this comment

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

LGTM!

@shahzad31 shahzad31 merged commit e8cf08f into elastic:master Jul 1, 2020
shahzad31 added a commit to shahzad31/kibana that referenced this pull request Jul 1, 2020
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
@shahzad31 shahzad31 changed the title Initial work on uptime homepage API Initial work on uptime for observability homepage API Jul 1, 2020
Bamieh pushed a commit to Bamieh/kibana that referenced this pull request Jul 1, 2020
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
shahzad31 added a commit that referenced this pull request Jul 1, 2020
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
Co-authored-by: Andrew Cholakian <andrew@andrewvc.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 1, 2020
…-based-rbac

* upstream/master: (38 commits)
  Move logger configuration integration test to jest (elastic#70378)
  Changes observability plugin codeowner (elastic#70439)
  update (elastic#70424)
  [Logs UI] Avoid CCS-incompatible index name resolution (elastic#70179)
  Enable "Explore underlying data" actions for Lens visualizations (elastic#70047)
  Initial work on uptime homepage API (elastic#70135)
  expressions indexPattern function (elastic#70315)
  [Discover] Deangularization context error message refactoring (elastic#70090)
  [Lens] Add "no data" popover (elastic#69147)
  [Lens] Move chart switcher over (elastic#70182)
  chore: add missing mjs extension (elastic#70326)
  [Lens] Multiple y axes (elastic#69911)
  skip flaky suite (elastic#70386)
  fix bug to add timeline to case (elastic#70343)
  [QA][Code Coverage] Drop catchError and use try / catch instead, (elastic#69198)
  [QA] [Code Coverage] Integrate with Team Assignment Pipeline and Add Research and Development Indexes and Cluster (elastic#69348)
  [Metrics UI] Add context.reason and alertOnNoData to Inventory alerts (elastic#70260)
  Resolver refactoring (elastic#70312)
  [Ingest Manager] Fix agent ack after input format change (elastic#70335)
  [eslint][ts] Enable prefer-ts-expect-error (elastic#70022)
  ...
@andrewvc andrewvc deleted the uptime-homepage-api branch July 6, 2020 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Uptime] Add Data Connector for observability homepage
6 participants