-
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.
- Loading branch information
Showing
2 changed files
with
116 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# `expressions` plugin | ||
|
||
Expressions power visualizations in Dashboard and Lens, as well as, every | ||
*element* in Canvas is backed by an expression. | ||
|
||
Expression pipeline is a chain of functions that *pipe* its output to the | ||
input of the next function. Functions can be configured using arguments provided | ||
by the user. The final output of the expression pipeline can be rendered using | ||
one of the *renderers* registered in `expressions` plugin. | ||
|
||
Below is an example of one Canvas element that fetches data using `essql` function, | ||
pipes it further to `math` and `metric` functions, and final `render` function | ||
renders the result. | ||
|
||
``` | ||
filters | ||
| essql | ||
query="SELECT COUNT(timestamp) as total_errors | ||
FROM kibana_sample_data_logs | ||
WHERE tags LIKE '%warning%' OR tags LIKE '%error%'" | ||
| math "total_errors" | ||
| metric "TOTAL ISSUES" | ||
metricFont={font family="'Open Sans', Helvetica, Arial, sans-serif" size=48 align="left" color="#FFFFFF" weight="normal" underline=false italic=false} | ||
labelFont={font family="'Open Sans', Helvetica, Arial, sans-serif" size=30 align="left" color="#FFFFFF" weight="lighter" underline=false italic=false} | ||
| render | ||
``` | ||
|
||
![image](https://user-images.githubusercontent.com/9773803/74162514-3250a880-4c21-11ea-9e68-86f66862a183.png) |
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