-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Monitoring] Monitoring eui #27064
Merged
Merged
[Monitoring] Monitoring eui #27064
Changes from 88 commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
5253ecb
[Monitoring] Cluster alerts table to EUI (#26031)
chrisronline 23313a4
Merge remote-tracking branch 'elastic/master' into monitoring_eui
chrisronline 6374271
Merge remote-tracking branch 'elastic/master' into monitoring_eui
chrisronline 48a425c
Merge branch 'master' of github.com:elastic/kibana into monitoring_eui
mattapperson 481dd13
[Monitoring] Elasticsearch monitoring to EUI (#26217)
chrisronline 37cc89f
Update token API calls in elaticsearch.js (#26650)
epixa 1cc57e8
make selection border 1px (#26739)
b89da88
Reporting phantom and chromium tests should run in parallel. (#26566)
njd5475 1866d57
[es-management/watcher] implement k7Breadcrumbs (#26719)
02cd345
[timelion] implement k7Breadcrumbs (#26729)
2078beb
[es-management] implement k7Breadcrumbs (#26711)
90e88b2
Fixes i18n issue in space nav selector (#26742)
legrego 72f0c7b
[Docs] Add beta flag to central management docs (#26558)
dedemorton cab577b
Feature/translate ml-jobs-jobs_list(part_1) (#25466)
Nox911 a1a1b52
Corrected wrong calls from .on to .off (#24575)
szydan 5ecf974
Fix saved objects client _processBatchQueue function to handle errors…
mikecote ce6305e
chore(.gitignore): ignore sublime workspace files (#26516)
Bamieh d9a30e1
Map inspector requests by id so single requests can be reset at a tim…
nreese 9240b8d
[ML] Implement k7 breadcrumbs for ML routes (#26774)
peteharverson e32c203
[Reporting] Re-enabled Chromium API tests (#26789)
tsullivan 669fa64
Fix Elasticsearch typo on connection error screen (#26815)
3e53313
Reporting/reveal document bytes (#26667)
joelgriffith 34a91e6
Enable heartbeat telemetry (#25886)
andrewvc 52719b7
Change 'Disenroll' text to be consistent with menu option 'Unenroll'.…
justinkambic f719089
Upgrading sshpk (#26834)
kobelb 975c5ae
Re-enable the chromium functional tests (#26822)
joelgriffith da114df
Logging when max-bytes is larger than what's set in ES (#26482)
joelgriffith cee968e
[BeatsCM] Cleanup and refactor (#26636)
mattapperson 5764dec
[APM] Transaction group agg size config (#26683)
ogupte 311a8bf
[APM] fixes #26784 by updateing import from a default to a named impo…
ogupte 5f9f8d9
allow disabling gpu in tests (#26684)
ppisljar ab913eb
skipping failing tests (#26877)
ppisljar 6316dd2
Feature/translate ml - jobs(part 2) (#25528)
Nox911 34f721b
use canvas pipeline in visualize (#25996)
ppisljar f6c306b
Upgrade to NodeJS 10 (#25157)
mistic 88e52af
fixing a11y errors so we can add a11y rules for tslint (#26902)
bhavyarm f8761c5
[DOCS] Deprecate X-Pack-centric watcher endpoints (#26899)
lcawl 5d1e791
Index lifecycle (#25553)
bmcconaghy 17bc659
[Telemetry] Pull local Kibana usage stats (#26496)
tsullivan afce725
add missing apm-server response error monitor (#26570)
graphaelli 53c3d5a
[DOCS] Deprecate /_xpack/security in favor of /_security (#26897)
lcawl b63926e
fix ems hotlink (#26868)
thomasneirynck 14328e8
Initialize authorization mode for reporting jobs (#26762)
legrego 2e485e5
wrap non error in a try/catch (#26898)
mattapperson 5051538
fix(NA): change kbn pm webpack config to generate dist files in mode=…
mistic d10d9be
Fail out of auth flow on first provider failure (#26648)
epixa e4a0962
fixing a11y errors so we can add a11y rules to tslint (#26895)
bhavyarm bcabd91
EUI 5.6.0 (#26839)
snide 6121e65
fixing interpreter socket error (#26870)
ppisljar 59a3f83
fixes split chart with no data (#26872)
ppisljar 33f04ff
fixing tooltips for line chart (#26881)
ppisljar f79dec0
Make space selector a button (#26889)
timroes 4d98195
[ML] Adds isRequired where applicable to timeseries_chart props. (#26…
walterra 8f68564
Translate share (#26802)
Nox911 66f1b5e
Only show change password form when a password change is possible (#2…
legrego fb4b925
[Beats CM] Add basic license type (#26935)
mattapperson 5f4da6d
Improve wording when creating a space (#26915)
legrego 439b736
fixing issue with multiple execution in console (#26933)
bmcconaghy 8131ed2
fixing a11y error (#26906)
bhavyarm 0ca00dc
[i18n] Translate ML - File Datavisualizer (Part 1) (#25641)
tibmt 866bc13
Use new _graph endpoints (#26956)
timroes 8cd6226
[ML] Do not pass datafeed query to Discover in custom URL (#26957)
peteharverson f094756
quick ILM fixes (#26966)
bmcconaghy 706993d
Fixing a11y errors in querybar and suggestion_component (#26892)
bhavyarm 077bea9
do not pass 'sortOrder' to EuiContextMenuItem in share context menu (…
nreese 77862b5
Feat: Workpad Templates (#23966)
cqliu1 b8e3d55
fix lint errors (#26985)
jbudz b785d6a
Fix: Support columns with dots (#26659)
w33ble 980b82b
upgrade resize-observer-polyfill version (#26990)
mw-ding 04e1aa4
Fixing issues with the url.search being null in Node 10 (#26992)
kobelb eaab682
Hide logs from deleteAll on task: clean client modules into dll (#26884)
mistic 65824c3
[APM] Fix for library frames not collapsing (#26827)
ogupte 3ce9b6d
[i18n] Translate untranslated labels (#26416)
Nox911 9ce4417
[ML] Fix word break in anomalies and jobs tables (#26978)
peteharverson ffca5f5
fixes other bucket request (#26874)
ppisljar 47bca12
[I18n] Register translations before plugins init (#26078)
LeanidShutau c09b098
[Infra UI] Fix styling after breaking EUI changes (#27021)
weltenwort b079601
[i18n] Optimize translation labels for Roles page (#26945)
maryia-lapata 9bae81d
Update APM readme
sorenlouv c6a6d4b
[APM] Convert errors API to typescript (#26801)
sorenlouv 5c42a22
[I18n] Allow i18n filter usage outside of interpolation expressions …
LeanidShutau d9ecd67
Introduce `recordOf` schema. Remove redundant declarations. (#26952)
azasypkin 7dfa1c3
[Infra UI] Fix graphql type generation after package upgrades (#26991)
weltenwort d71d97b
[Monitoring] APM monitoring to EUI (#26344)
chrisronline 806e24c
[Monitoring] Beats monitoring to EUI (#26287)
chrisronline f61f7a1
[Monitoring] Kibana monitoring to EUI (#26361)
chrisronline e503e2f
[Monitoring] Logstash monitoring to EUI (#26298)
chrisronline d805543
Merge in master
chrisronline 037d9d3
PR feedback
chrisronline b0511fa
Merge remote-tracking branch 'elastic/master' into monitoring_eui
chrisronline 81bb4b0
Merge remote-tracking branch 'elastic/master' into monitoring_eui
chrisronline 9512483
Merge remote-tracking branch 'elastic/master' into monitoring_eui
chrisronline File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 126 additions & 0 deletions
126
x-pack/plugins/monitoring/public/components/alerts/alerts.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { capitalize } from 'lodash'; | ||
import { formatDateTimeLocal } from '../../../common/formatting'; | ||
import { formatTimestampToDuration } from '../../../common'; | ||
import { CALCULATE_DURATION_SINCE, EUI_SORT_DESCENDING } from '../../../common/constants'; | ||
import { mapSeverity } from './map_severity'; | ||
import { Tooltip } from 'plugins/monitoring/components/tooltip'; | ||
import { FormattedAlert } from 'plugins/monitoring/components/alerts/formatted_alert'; | ||
import { EuiMonitoringTable } from 'plugins/monitoring/components/table'; | ||
import { EuiHealth, EuiIcon } from '@elastic/eui'; | ||
|
||
const linkToCategories = { | ||
'elasticsearch/nodes': 'Elasticsearch Nodes', | ||
'elasticsearch/indices': 'Elasticsearch Indices', | ||
'kibana/instances': 'Kibana Instances', | ||
'logstash/instances': 'Logstash Nodes', | ||
}; | ||
const getColumns = (kbnUrl, scope) => ([ | ||
{ | ||
name: 'Status', | ||
field: 'metadata.severity', | ||
sortable: true, | ||
render: severity => { | ||
const severityIcon = mapSeverity(severity); | ||
|
||
return ( | ||
<Tooltip text={severityIcon.title} placement="bottom" trigger="hover"> | ||
<EuiHealth color={severityIcon.color} data-test-subj="alertIcon" aria-label={severityIcon.title}> | ||
{ capitalize(severityIcon.value) } | ||
</EuiHealth> | ||
</Tooltip> | ||
); | ||
} | ||
}, | ||
{ | ||
name: 'Resolved', | ||
field: 'resolved_timestamp', | ||
sortable: true, | ||
render: (resolvedTimestamp) => { | ||
const resolution = { | ||
icon: null, | ||
text: 'Not Resolved' | ||
}; | ||
|
||
if (resolvedTimestamp) { | ||
resolution.text = `${formatTimestampToDuration(resolvedTimestamp, CALCULATE_DURATION_SINCE)} ago`; | ||
} else { | ||
resolution.icon = <EuiIcon type="alert" size="m" aria-label="Not Resolved" />; | ||
} | ||
|
||
return ( | ||
<span> | ||
{ resolution.icon } { resolution.text } | ||
</span> | ||
); | ||
}, | ||
}, | ||
{ | ||
name: 'Message', | ||
field: 'message', | ||
sortable: true, | ||
render: (message, alert) => ( | ||
<FormattedAlert | ||
prefix={alert.prefix} | ||
suffix={alert.suffix} | ||
message={message} | ||
metadata={alert.metadata} | ||
changeUrl={target => { | ||
scope.$evalAsync(() => { | ||
kbnUrl.changePath(target); | ||
}); | ||
}} | ||
/> | ||
) | ||
}, | ||
{ | ||
name: 'Category', | ||
field: 'metadata.link', | ||
sortable: true, | ||
render: link => linkToCategories[link] ? linkToCategories[link] : 'General' | ||
}, | ||
{ | ||
name: 'Last Checked', | ||
field: 'update_timestamp', | ||
sortable: true, | ||
render: timestamp => formatDateTimeLocal(timestamp) | ||
}, | ||
{ | ||
name: 'Triggered', | ||
field: 'timestamp', | ||
sortable: true, | ||
render: timestamp => formatTimestampToDuration(timestamp, CALCULATE_DURATION_SINCE) + ' ago' | ||
}, | ||
]); | ||
|
||
export const Alerts = ({ alerts, angular, sorting, pagination, onTableChange }) => { | ||
return ( | ||
<EuiMonitoringTable | ||
className="alertsTable" | ||
rows={alerts} | ||
columns={getColumns(angular.kbnUrl, angular.scope)} | ||
sorting={{ | ||
...sorting, | ||
sort: { | ||
...sorting.sort, | ||
field: 'metadata.severity', | ||
direction: EUI_SORT_DESCENDING, | ||
} | ||
}} | ||
pagination={pagination} | ||
search={{ | ||
box: { | ||
incremental: true, | ||
placeholder: 'Filter Alerts...' | ||
}, | ||
}} | ||
onTableChange={onTableChange} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
export { Alerts } from './alerts'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This text should be translatable right?
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.
Yes, nice catch!