Extension:Grafana

Check extension with Grafana and Icinga2

Grafana creates beautiful metrics & analitics dashboards.

Introduction
Usually people monitor a lot of host/services, system administrators spend a lot of time solving trivial problems and a lot problems can be solved by end user.

If we join a wiki (Mediawiki) for documentation and Grafana, we obtain a powerful tool. System administrator can create instructions and Grafana reports metrics & analitics.

Check usage

 * Grafana

Installation

 * 1) Download the extension (tgz) or (zip).
 * 2) Upload Grafana directory to your extensions directory from the root of your MediaWiki installation.
 * 3) Add   to your LocalSettings.php file (near the end).
 * 4) Done

Usage
To insert a Grafana panel add the tag on any page:

Grafana panel

Tag attributes
The following arguments (tag attributes) can be used to control  tags:

Mandatory

 * showheader (yes/no)
 * Show header with time to refesh map, links to NagVis map and Nagios/Icinga server.


 * urlgrafana
 * Grafana url (Extension will check if it's a correct Grafana site)


 * dashboard
 * Name of the dashboard in Grafana Server


 * papelposition
 * It's the postion of the panel in the dashboard.(panelposition=1 it's the first panel in row 1).
 * For example if we have 3 rows (row 1 with 2 panels, row 2 with 1 panel and row 3 with 3 panels)
 * and we want to select panel 2 in row 3:
 * panelposition = 5 -> 2 (panels in row 1) + 1 (panels in row 2) + 2 (panel in row 3)
 * panelposition = 5 -> 2 (panels in row 1) + 1 (panels in row 2) + 2 (panel in row 3)

Optional

 * var-templatename
 * Include params for a template, we need to add an argument with the prefix "var-"
 * and templatename. For example for add the var $macrolan:
 * var-macrolan=template_var_value
 * width
 * Panel width
 * width
 * Panel width


 * height
 * Panel height


 * theme
 * Grafana theme (dark, light, etc.)

Example
 Title panel (Grafana with Mediawiki) 

Screenshots (Examples)

 * Grafana tag with argument showheader=yes
 * Grafana tag with argument showheader=no:

Screenshots (Examples)

 * Grafana tag with argument showheader=yes:

Versions
Download

1.00:
 * Initial release:

If you test other versions, please send an email to