-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into adding-initial-file-analysis-overrides
- Loading branch information
Showing
172 changed files
with
3,432 additions
and
1,246 deletions.
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[role="xpack"] | ||
[[kibana-alerts]] | ||
= {kib} Alerts | ||
|
||
The {stack} {monitor-features} provide | ||
<<alerting-getting-started,{kib} alerts>> out-of-the box to notify you of | ||
potential issues in the {stack}. These alerts are preconfigured based on the | ||
best practices recommended by Elastic. However, you can tailor them to meet your | ||
specific needs. | ||
|
||
When you open *{stack-monitor-app}*, the preconfigured {kib} alerts are | ||
created automatically. If you collect monitoring data from multiple clusters, | ||
these alerts can search, detect, and notify on various conditions across the | ||
clusters. The alerts are visible alongside your existing {watcher} cluster | ||
alerts. You can view details about the alerts that are active and view health | ||
and performance data for {es}, {ls}, and Beats in real time, as well as | ||
analyze past performance. You can also modify active alerts. | ||
|
||
[role="screenshot"] | ||
image::user/monitoring/images/monitoring-kibana-alerts.png["Kibana alerts in the Stack Monitoring app"] | ||
|
||
To review and modify all the available alerts, use | ||
<<managing-alerts-and-actions,*{alerts-ui}*>> in *{stack-manage-app}*. | ||
|
||
[discrete] | ||
[[kibana-alerts-cpu-threshold]] | ||
== CPU threshold | ||
|
||
This alert is triggered when a node runs a consistently high CPU load. By | ||
default, the trigger condition is set at 85% or more averaged over the last 5 | ||
minutes. The alert is grouped across all the nodes of the cluster by running | ||
checks on a schedule time of 1 minute with a re-notify internal of 1 day. | ||
|
||
NOTE: Some action types are subscription features, while others are free. | ||
For a comparison of the Elastic subscription levels, see the alerting section of | ||
the {subscriptions}[Subscriptions page]. |
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
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
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
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,6 @@ | ||
# Error handling | ||
|
||
State syncing util doesn't have specific api for handling errors. | ||
It expects that errors are handled on storage level. | ||
|
||
see [KbnUrlStateStorage](./storages/kbn_url_storage.md#) error handling section for details. |
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
62 changes: 62 additions & 0 deletions
62
src/plugins/kibana_utils/public/state_management/url/errors.ts
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,62 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
import { NotificationsStart } from 'kibana/public'; | ||
|
||
export const restoreUrlErrorTitle = i18n.translate( | ||
'kibana_utils.stateManagement.url.restoreUrlErrorTitle', | ||
{ | ||
defaultMessage: `Error restoring state from URL`, | ||
} | ||
); | ||
|
||
export const saveStateInUrlErrorTitle = i18n.translate( | ||
'kibana_utils.stateManagement.url.saveStateInUrlErrorTitle', | ||
{ | ||
defaultMessage: `Error saving state in URL`, | ||
} | ||
); | ||
|
||
/** | ||
* Helper for configuring {@link IKbnUrlStateStorage} to notify about inner errors | ||
* | ||
* @example | ||
* ```ts | ||
* const kbnUrlStateStorage = createKbnUrlStateStorage({ | ||
* history, | ||
* ...withNotifyOnErrors(core.notifications.toast)) | ||
* } | ||
* ``` | ||
* @param toast - toastApi from core.notifications.toasts | ||
*/ | ||
export const withNotifyOnErrors = (toasts: NotificationsStart['toasts']) => { | ||
return { | ||
onGetError: (error: Error) => { | ||
toasts.addError(error, { | ||
title: restoreUrlErrorTitle, | ||
}); | ||
}, | ||
onSetError: (error: Error) => { | ||
toasts.addError(error, { | ||
title: saveStateInUrlErrorTitle, | ||
}); | ||
}, | ||
}; | ||
}; |
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.