-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Conversation
Pinging @elastic/uptime (Team:uptime) |
@@ -63,6 +67,58 @@ export class UptimePlugin | |||
}); | |||
} | |||
|
|||
// This doesn't actually work |
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.
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 }) { |
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.
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.
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.
@cauemarcondes i have updated to use the bucketSize
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.
LGTM
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.
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.
x-pack/plugins/uptime/server/lib/requests/get_ping_histogram.ts
Outdated
Show resolved
Hide resolved
ec837f7
to
ad6d359
Compare
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
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.
LGTM!
Co-authored-by: Shahzad <[email protected]>
Co-authored-by: Shahzad <[email protected]>
Co-authored-by: Shahzad <[email protected]> Co-authored-by: Andrew Cholakian <[email protected]>
…-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) ...
Resolves #69716 by adding a data connector for uptime data.
Testing
You can test this by adding following code
in file https://github.com/elastic/kibana/blob/master/x-pack/plugins/observability/public/application/index.tsx#L15