Customizing Performance Graph¶
If the default Performance Graph for a check command is not suitable for your needs, you can adapt it by providing your own dashboard.
First of all, create the desired ITOA dashboard in the Main Org.
Note
You are advised to not modify the preconfigured dashboards in the neteye-performance-graphs folder, as they will be overwritten at the next neteye install execution.
Finally you have to update the mapping from check command to dashboard in the
section.If you want to change an existing graph, you must update the Dashboard UID field using the UID of the previously created dashboard.
To add a new graph please refer to Icingaweb2 Module Grafana doc
Advanced: Automating Creation of Custom Performance Graphs¶
If you need to automate the creation of custom performance graphs, you can do so by using a preconfigured JSON file in the following way:
Create an ITOA dashboard with the desired panel
Name the dashboard the same as the check command
Export the dashboard in JSON format by clicking
Save the JSON as
/usr/share/grafana/public/dashboards/neteye-performance-graphs/neteye/<check-command>.json
At this point, a couple of changes to the JSON are needed:
Remove the uid field at the root level
Set the id field at the root level to null
Set the datasource field of the panel to null
To customize any option of the performance graph, you can do so by adding an ini file in
/usr/share/grafana/public/dashboards/neteye-performance-graphs/neteye/<check-command>.ini
.The ini file must have the same name as the check command
Create a section with the same name as the check command
Add the options you want to customize in the section as key-value pairs
Example:
/usr/share/grafana/public/dashboards/neteye-performance-graphs/neteye/my_check_command.ini
[my_check_command] panelId = "1,2" customVars = "&os=$os$"
Run the neteye install command to apply the changes
# neteye install