In this article we will build a Dashboard solution for our Ping MP. You need to have the Data Source installed and configured and aslo our Ping MP to be able to follow this. You also need the plugin Polystat installed.
In the last part of this series of articles we created a new dashboard with perfomance counters for all instances. We will now modify this and the the other dashboard so the perfomance dashboard is shown for a specific instnace when you click on that instance in the Polystat panel.
1. First we need to add a variable to the performance dashboard. Go to the perfomance dashboard and click "Edit"
2.Choose Settings.
3. Go to the folder "Variables" and choose "Add variable".
4. Choose "Custom",give the variable a name (for example TargetName), choose "Vairable" in the Hide section and then click "Back to list".
5. Check that the variable is listed and then click "Back to dashboard".
6. Save the dashboard and go to the "Ping Overview" dashboard we created first in this series. In there click on the 3 dots (on the upper right corner) on the Pane for the Polystat we made with all Instances and then choose Edit.
7. On the Panel Options scroll down to the section "Global" and the option "Default Clickthrough". In here you fill in the link of the URL you copied in the last part. You should remove the http://<servername> and also everything after the name part (in this case ping-details). Then you add the following text "?var-TargetName=${__cell_name}" to it at the end. It should look something like this.
/d/ea45f4c7-3136-450c-9db1-92455f407f91/ping-details?var-TargetName=${__cell_name}
8. Save the dashboard and go back to the performance dashboard. It will still show all instances so we need to change this.
9. Start by edit the Average Jitter Pane by clicking on the 3 dots and choose Edit.
10. If we choose Table View and look at the data we can see that each instance has it own series of data. Because of this we need to merge the series to be able to filter on it based on the the variable we created earlier.
11. To be able to do this we go to the transformations folder and choose "Add Transformation".
12. We choose "Merge series/tables". There is no configuration needed for this.
13. The next step is to filter out the data based on the variable we created earlier. We do this by choosing "Add another transformation"
14. We choose "Filter data by values".
15. Add a condition and configure it according to this picture.
16.Go to the Panel Options and Change the Title so it shows the Instance name like the picture below. When you add "- $TargetName" it will change the name on the panel to the instance name as you can see in the red box. Save the Dashboard.
17. Now repeat steps 9-15 and do the exact same for Packet Loss and Response Time.
18. If you want you can change the colour on each graph and you do that by selecting the Colour Scheme in the Panel Option for each graph.
19. If you have done eveyrthing right you should be able to click on a instance in the Polystat panel and then it will open a new detail page looking like this.
This concludes this article series and hopefully you have gained som insight of how you can create dashboards and use the SCOM Datasource in Grafana.
Links to all parts