mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
parent
08dee96890
commit
3352194459
1 changed files with 9 additions and 2 deletions
|
@ -32,7 +32,9 @@ To start tracking the real-time percentage of CPU, enter the following in the *T
|
|||
|
||||
[source,text]
|
||||
----------------------------------
|
||||
.es(index=metricbeat-*, timefield='@timestamp', metric='avg:system.cpu.user.pct')
|
||||
.es(index=metricbeat-*,
|
||||
timefield='@timestamp',
|
||||
metric='avg:system.cpu.user.pct')
|
||||
----------------------------------
|
||||
|
||||
[role="screenshot"]
|
||||
|
@ -70,7 +72,12 @@ To easily distinguish between the two data sets, add the label names:
|
|||
|
||||
[source,text]
|
||||
----------------------------------
|
||||
.es(offset=-1h,index=metricbeat-*, timefield='@timestamp', metric='avg:system.cpu.user.pct').label('last hour'), .es(index=metricbeat-*, timefield='@timestamp', metric='avg:system.cpu.user.pct').label('current hour') <1>
|
||||
.es(offset=-1h,index=metricbeat-*,
|
||||
timefield='@timestamp',
|
||||
metric='avg:system.cpu.user.pct').label('last hour'),
|
||||
.es(index=metricbeat-*,
|
||||
timefield='@timestamp',
|
||||
metric='avg:system.cpu.user.pct').label('current hour') <1>
|
||||
----------------------------------
|
||||
|
||||
<1> `.label()` adds custom labels to the visualization.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue