palette
Input Stack: |
⇨ |
Output Stack: |
Set the palette to use for the results of an expression. This
operator is allows for scoping a palette to a particular group by instead of to
all lines that share the same axis. A common use-case is to have multiple stacked
group by expressions using different palettes. For example, suppose I want to create
a graph showing overall request per second hitting my services with successful requests
shown in shades of green and errors in shades of
red. This can make it easy to visually see if a change is
due to an increase in errors:
Or a spike in successful requests:
Examples:
Before | After |
| |
name,sps,:eq,
:sum,
(,nf.cluster,),:by
| name,sps,:eq,
:sum,
(,nf.cluster,),:by,
reds,:palette
|