-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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' of github.com:elastic/kibana into ts_vector_sty…
…le_properties
- Loading branch information
Showing
74 changed files
with
1,076 additions
and
468 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
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
70 changes: 70 additions & 0 deletions
70
.../infra/public/containers/metrics_explorer/with_metrics_explorer_options_url_state.test.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,70 @@ | ||
/* | ||
* 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 { omit } from 'lodash'; | ||
import { mapToUrlState } from './with_metrics_explorer_options_url_state'; | ||
|
||
describe('WithMetricsExplorerOptionsUrlState', () => { | ||
describe('mapToUrlState', () => { | ||
it('loads a valid URL state', () => { | ||
expect(mapToUrlState(validState)).toEqual(validState); | ||
}); | ||
it('discards invalid properties and loads valid properties into the URL', () => { | ||
expect(mapToUrlState(invalidState)).toEqual(omit(invalidState, 'options')); | ||
}); | ||
}); | ||
}); | ||
|
||
const validState = { | ||
chartOptions: { | ||
stack: false, | ||
type: 'line', | ||
yAxisMode: 'fromZero', | ||
}, | ||
options: { | ||
aggregation: 'avg', | ||
filterQuery: '', | ||
groupBy: ['host.hostname'], | ||
metrics: [ | ||
{ | ||
aggregation: 'avg', | ||
color: 'color0', | ||
field: 'system.cpu.user.pct', | ||
}, | ||
{ | ||
aggregation: 'avg', | ||
color: 'color1', | ||
field: 'system.load.1', | ||
}, | ||
], | ||
source: 'url', | ||
}, | ||
timerange: { | ||
from: 'now-1h', | ||
interval: '>=10s', | ||
to: 'now', | ||
}, | ||
}; | ||
|
||
const invalidState = { | ||
chartOptions: { | ||
stack: false, | ||
type: 'line', | ||
yAxisMode: 'fromZero', | ||
}, | ||
options: { | ||
aggregation: 'avg', | ||
filterQuery: '', | ||
groupBy: ['host.hostname'], | ||
metrics: 'this is the wrong data type', | ||
source: 'url', | ||
}, | ||
timerange: { | ||
from: 'now-1h', | ||
interval: '>=10s', | ||
to: 'now', | ||
}, | ||
}; |
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.