-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
automatically add specific reports to cluster_view and host_view #191
base: master
Are you sure you want to change the base?
Conversation
script. At the same time we recreate the cluster_<name>.json file and add these reports to the included_reports. This works quite well, but means that there can't be local changes in the includes/excludes reports. So we've patched cluster_view.php, to look for reports matching cluster_<name>_.*_report.json (or php). If such a report exists, it is automatically added to the included_reports array and gets displayed. Since the change is very easy to port to the host_view (and we also have lot's of reports for hosts as well), that hunk is included too. Since this is a very visible change, review is welcome. If the changes are merged a description should be added to some documentation and possibly the ganglia book as well.
The comment talks about cluster graphs, but here we are in host context.
As requested by mnikhil-git some examples from our installation (I'll add the exact json files later). We use Ganglia to monitor our Power/AIX Systems. Each of these hardware machines is LPARs can be "dedicated", which means that the CPUs are permanently assigned to an LPAR. For our customers we use a feature of the Power hypervisor to group the LPARs into pools. Michael Perzl has a graph cpu_used_report that works well for exactly one CPU pool. But
So we have a good understanding which pool is busy and which LPARs are busy. For the host graphs we look into our applications/databases. On each host/LPAR we DB2 stores open transactions in log files in /db2//log_dir. This is a filesystem with
We generate similar graphs for the SAP enqueue system (number of locks defined and used). Hope that helps to understand what we are doing. |
Here is an example for a pool graph. There can be more than one pool for a box and lot's of LPARs: { Right now we generate the json files with a cron job. cpu_in_pool is a metric from Michael Perzls Power Modules, the pool number is also part of the LPARs metrics. |
…op-down list In the cluster view we can select the metric that is displayed for each host. Until now all reports/metrics are displayed in the dropdown-list "Metric". In the "Edit Optional Graphs" we had all reports for cluster and host. In our system we have dozens of reports for our clusters (but only some relevant for each cluster) and hundreds of different reports for hosts (and again only some relevant for each host). The earlier patches added the reports automagically to clusters and hosts respectively, so there is no need to add these reports in the edit_optional_graphs.php and the metric drop-down list in the cluster_view. For both lists we exclude the (cluster|host)_*_report.json from view, because they are always included as we need it.
We have hundreds of local metrics that are only useful for a single host. Currently all of these metrics are added to the drop down menu in the cluster view. This patch defines the configuration option 'cluster_hide_metrics_from_menu', a regular expression. All metrics matching this regular expression are hidden from the drop down menu.
We have lots of json-reports for clusters that we generate with a
script. At the same time we recreate the cluster_.json file and
add these reports to the included_reports. This works quite well, but
means that there can't be local changes in the includes/excludes
reports.
So we've patched cluster_view.php, to look for reports matching
cluster__.*_report.json (or php). If such a report exists, it is
automatically added to the included_reports array and gets displayed.
Since the change is very easy to port to the host_view (and we also
have lot's of reports for hosts as well), that hunk is included too.
Since this is a very visible change, review is welcome. If the changes
are merged a description should be added to some documentation and
possibly the ganglia book as well.