Widgets - capensis/canopsis-doc GitHub Wiki
Widgets allow to monitor and administer systems in different graph types from a View.
[[TOC]]
#Types
Here are 14 types of widgets.
"Display perfdata on customizable bar graphs. "
Bar graphs can be used to display various datas. One of the possible use shown here is to display the delta of disk operations for a specified time frame. This will give us a bar graph representing the history of the disk operations in terms of space freed or being taken at a given time.
figure 1 |
figure 1 |
figure 1 |
Compare values in a pie or a categorized bar graph. Diagrams widgets are different from Line and bar graphs width in that they only display one value (the last one) per metrics at a given time. Diagram are useful to compare few metrics between themselves. The Figure 1 below shows the delta of resources usage on a given host for a specified time frame. We can see disk, memory and swap usage for a delta of 15mn and a time interval of a day.
figure 1 |
"Display live stream" Soon.
"Display Gauge."
Various metric can be shown with the gauge widget. the screenshot below displays the total used memory and the amount of idle cpu time on a given host.
figure 1 |
"Display perfdata on customizable graphs."
Line graphs are roughly the same widgets as the Bar graphs. They are both used to display an historic of data for a given component or resource. Choosing between the two is just a matter of preferences for curves instead of bars and few other render options that are specific to each other. Functionality wise they are the same.
"Display list of inventory items selected by the provided filter"
Allow to display a list according to a set of defined mongo filters.
Filters use a field name (from event specification) a condition and a value.
For example a filer like the following: state is equal 2
would show a list of all events where a given component or resource state is critical.
figure 1 |
Soon.
"Display list of metrics sorted by value"
Perf. Top is typically used to display the "mosts / lesses" cases. The most used disks, the most used cpus, or inversely the less used disks and cpus. For doing so it uses a customisable mongodb filter as shown in figure 1 below. The filter used here is: metric is equal used
(see Canopsis Build menu > perfdata for a list of all available metrics)
figure 1 |
Soon.
"Display the live stream of events."
The Stream widget displays in real time the components or resources sate changes.
This is taken from the AMQP exchange "canopsis.alert" which monitor the change of state of a given component or resource as defined by the event publishers (Nagios, Graylog, etc).
For example, if Nagios sees a state change (from 0 to 3) in an element it monitors, this event is pushed to canopsis.alert
and end up being displayed in our stream widget.
figure 1 |
"Display a message with a html template."
This widget primary purpose is to display an arbitrary string of text.
It can also display html code and event variables. The list of variables can be seen on Event specification page, Event structure paragraph. Possible uses of the text cell widget are: add labels on our custom Views, display some html frame (like twitter, icinga etc..) or print variables from the inventory tab as shown on the grabs below. You can use for example {output} to display output of a resource, or directly use {perfdata:%metric_name%:value} ( {perfdata:cps_sel_total:value} ) to display a specific perfdata.
figure 1 |
figure 2 |
Soon.
Soon.
"Display selector state SLA as weather icons" Soon.