Skip to content

Commit

Permalink
[DOCS] More formatting fixes to Timelion docs (#65543) (#65558)
Browse files Browse the repository at this point in the history
  • Loading branch information
gchaps authored May 7, 2020
1 parent 08dee96 commit 3352194
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/visualize/timelion.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3352194

Please sign in to comment.