@@ -43,7 +43,7 @@ image::images/timelion-create01.png[]
4343[[time-series-compare-data]]
4444==== Compare the data
4545
46- To compare the two data sets, add another series with data from the previous hour, separated by a comma:
46+ To compare the two data sets, add another series with data from the previous hour, separated by a comma:
4747
4848[source,text]
4949----------------------------------
@@ -81,7 +81,7 @@ image::images/timelion-create03.png[]
8181
8282[float]
8383[[time-series-title]]
84- ==== Add a title
84+ ==== Add a title
8585
8686Add a meaningful title:
8787
@@ -169,7 +169,7 @@ Change the position and style of the legend:
169169
170170[source,text]
171171----------------------------------
172- .es(offset=-1h,index=metricbeat-*, timefield='@timestamp', metric='avg:system.cpu.user.pct').label('last hour').lines(fill=1,width=0.5).color(gray), .es(index=metricbeat-*, timefield='@timestamp', metric='avg:system.cpu.user.pct').label('current hour').title('CPU usage over time').color(#1E90FF).legend(columns=2, position=nw) <1>
172+ .es(offset=-1h,index=metricbeat-*, timefield='@timestamp', metric='avg:system.cpu.user.pct').label('last hour').lines(fill=1,width=0.5).color(gray), .es(index=metricbeat-*, timefield='@timestamp', metric='avg:system.cpu.user.pct').label('current hour').title('CPU usage over time').color(#1E90FF).legend(columns=2, position=nw) <1>
173173----------------------------------
174174
175175<1> `.legend()` sets the position and style of the legend. In this example, `.legend(columns=2, position=nw)` places the legend in the north west position of the visualization with two columns.
@@ -210,7 +210,7 @@ Change how the data is displayed so that you can easily monitor the inbound traf
210210.es(index=metricbeat*, timefield=@timestamp, metric=max:system.network.in.bytes).derivative() <1>
211211----------------------------------
212212
213- <1> `.derivative` plots the change in values over time.
213+ <1> `.derivative` plots the change in values over time.
214214
215215[role="screenshot"]
216216image::images/timelion-math02.png[]
@@ -240,7 +240,7 @@ To make the visualization easier to analyze, change the data metric from bytes t
240240.es(index=metricbeat*, timefield=@timestamp, metric=max:system.network.in.bytes).derivative().divide(1048576), .es(index=metricbeat*, timefield=@timestamp, metric=max:system.network.out.bytes).derivative().multiply(-1).divide(1048576) <1>
241241----------------------------------
242242
243- <1> `.divide()` accepts the same input as `.multiply()`, then divides the data series by the defined divisor.
243+ <1> `.divide()` accepts the same input as `.multiply()`, then divides the data series by the defined divisor.
244244
245245[role="screenshot"]
246246image::images/timelion-math04.png[]
@@ -256,7 +256,7 @@ Customize and format the visualization using functions:
256256----------------------------------
257257.es(index=metricbeat*,
258258 timefield=@timestamp,
259- metric=max:system.network.in.byte )
259+ metric=max:system.network.in.bytes )
260260 .derivative()
261261 .divide(1048576)
262262 .lines(fill=2, width=1)
@@ -270,7 +270,7 @@ Customize and format the visualization using functions:
270270 .multiply(-1)
271271 .divide(1048576)
272272 .lines(fill=2, width=1) <3>
273- .color(blue) < <4>
273+ .color(blue) <4>
274274 .label("Outbound traffic")
275275 .legend(columns=2, position=nw) <5>
276276----------------------------------
0 commit comments