Repository: ambari Updated Branches: refs/heads/trunk 42d13fd25 -> 40341c29a
AMBARI-14613: Metrics for HAWQ Service Dashboard(mithmatt via jaoki) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/40341c29 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/40341c29 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/40341c29 Branch: refs/heads/trunk Commit: 40341c29a96ddc78ec690e8970f31da3989c7e20 Parents: 42d13fd Author: Jun Aoki <ja...@apache.org> Authored: Mon Jan 11 17:34:48 2016 -0800 Committer: Jun Aoki <ja...@apache.org> Committed: Mon Jan 11 17:34:48 2016 -0800 ---------------------------------------------------------------------- .../common-services/HAWQ/2.0.0/metainfo.xml | 5 +- .../common-services/HAWQ/2.0.0/metrics.json | 67 ++++++++++ .../common-services/HAWQ/2.0.0/widgets.json | 133 +++++++++++++++++++ 3 files changed, 204 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/40341c29/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metainfo.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metainfo.xml b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metainfo.xml index 330671a..21ab445 100644 --- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metainfo.xml +++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metainfo.xml @@ -31,6 +31,7 @@ <displayName>HAWQ Master</displayName> <category>MASTER</category> <cardinality>1</cardinality> + <timelineAppid>HAWQ</timelineAppid> <commandScript> <script>scripts/hawqmaster.py</script> <scriptType>PYTHON</scriptType> @@ -69,6 +70,7 @@ <displayName>HAWQ Standby Master</displayName> <category>MASTER</category> <cardinality>0-1</cardinality> + <timelineAppid>HAWQ</timelineAppid> <commandScript> <script>scripts/hawqstandby.py</script> <scriptType>PYTHON</scriptType> @@ -90,6 +92,7 @@ <displayName>HAWQ Segment</displayName> <category>SLAVE</category> <cardinality>1+</cardinality> + <timelineAppid>HAWQ</timelineAppid> <commandScript> <script>scripts/hawqsegment.py</script> <scriptType>PYTHON</scriptType> @@ -106,7 +109,7 @@ </customCommand> </customCommands> </component> - </components> + </components> <requiredServices> <service>HDFS</service> </requiredServices> http://git-wip-us.apache.org/repos/asf/ambari/blob/40341c29/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metrics.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metrics.json b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metrics.json new file mode 100644 index 0000000..5da1183 --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metrics.json @@ -0,0 +1,67 @@ +{ + "HAWQSEGMENT": { + "Component": [ + { + "type": "ganglia", + "metrics": { + "default": { + "metrics/cpu/cpu_system":{ + "metric":"cpu_system", + "pointInTime":true, + "temporal":true, + "amsHostMetric":true + }, + "metrics/cpu/cpu_user":{ + "metric":"cpu_user", + "pointInTime":true, + "temporal":true, + "amsHostMetric":true + }, + "metrics/cpu/cpu_nice":{ + "metric":"cpu_nice", + "pointInTime":true, + "temporal":true, + "amsHostMetric":true + }, + "metrics/cpu/cpu_idle":{ + "metric":"cpu_idle", + "pointInTime":true, + "temporal":true, + "amsHostMetric":true + }, + "metrics/cpu/cpu_wio":{ + "metric":"cpu_wio", + "pointInTime":true, + "temporal":true, + "amsHostMetric":true + }, + "metrics/network/bytes_in":{ + "metric":"bytes_in", + "pointInTime":true, + "temporal":true, + "amsHostMetric":true + }, + "metrics/network/bytes_out":{ + "metric":"bytes_out", + "pointInTime":true, + "temporal":true, + "amsHostMetric":true + }, + "metrics/disk/read_bps":{ + "metric":"read_bps", + "pointInTime":true, + "temporal":true, + "amsHostMetric":true + }, + "metrics/disk/write_bps":{ + "metric":"write_bps", + "pointInTime":true, + "temporal":true, + "amsHostMetric":true + } + } + } + } + ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/40341c29/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/widgets.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/widgets.json b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/widgets.json new file mode 100644 index 0000000..52dd0cc --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/widgets.json @@ -0,0 +1,133 @@ +{ + "layouts": [ + { + "layout_name": "default_hawq_dashboard", + "display_name": "Standard HAWQ Dashboard", + "section_name": "HAWQ_SUMMARY", + "widgetLayoutInfo": [ + { + "widget_name": "HAWQ Segment Hosts CPU", + "description": "Percentage of CPU utilized across all HAWQ Segment hosts.", + "default_section_name": "HAWQ_SUMMARY", + "widget_type": "GRAPH", + "is_visible": true, + "metrics": [ + { + "name": "cpu_system._sum", + "metric_path": "metrics/cpu/cpu_system._sum", + "service_name": "HAWQ", + "component_name": "HAWQSEGMENT" + }, + { + "name": "cpu_user._sum", + "metric_path": "metrics/cpu/cpu_user._sum", + "service_name": "HAWQ", + "component_name": "HAWQSEGMENT" + }, + { + "name": "cpu_nice._sum", + "metric_path": "metrics/cpu/cpu_nice._sum", + "service_name": "HAWQ", + "component_name": "HAWQSEGMENT" + }, + { + "name": "cpu_idle._sum", + "metric_path": "metrics/cpu/cpu_idle._sum", + "service_name": "HAWQ", + "component_name": "HAWQSEGMENT" + }, + { + "name": "cpu_wio._sum", + "metric_path": "metrics/cpu/cpu_wio._sum", + "service_name": "HAWQ", + "component_name": "HAWQSEGMENT" + } + ], + "values": [ + { + "name": "CPU utilization", + "value": "${((cpu_system._sum + cpu_user._sum + cpu_nice._sum)/(cpu_system._sum + cpu_user._sum + cpu_nice._sum + cpu_idle._sum + cpu_wio._sum)) * 100}" + } + ], + "properties": { + "graph_type": "LINE", + "time_range": "1", + "display_unit": "%" + } + }, + { + "widget_name": "HAWQ Segment Hosts Network", + "description": "Average of Network IO utilized across all HAWQ Segment hosts.", + "default_section_name": "HAWQ_SUMMARY", + "widget_type": "GRAPH", + "is_visible": true, + "metrics": [ + { + "name": "bytes_in._avg", + "metric_path": "metrics/network/bytes_in._avg", + "service_name": "HAWQ", + "component_name": "HAWQSEGMENT" + }, + { + "name": "bytes_out._avg", + "metric_path": "metrics/network/bytes_out._avg", + "service_name": "HAWQ", + "component_name": "HAWQSEGMENT" + } + ], + "values": [ + { + "name": "Bytes In", + "value": "${bytes_in._avg/1048576}" + }, + { + "name": "Bytes Out", + "value": "${bytes_out._avg/1048576}" + } + ], + "properties": { + "display_unit": "MBps", + "graph_type": "LINE", + "time_range": "1" + } + }, + { + "widget_name": "HAWQ Segment Hosts Disk", + "description": "Sum of disk throughput for all HAWQ Segment hosts.", + "default_section_name": "HAWQ_SUMMARY", + "widget_type": "GRAPH", + "is_visible": true, + "metrics": [ + { + "name": "read_bps._sum", + "metric_path": "metrics/disk/read_bps._sum", + "service_name": "HAWQ", + "component_name": "HAWQSEGMENT" + }, + { + "name": "write_bps._sum", + "metric_path": "metrics/disk/write_bps._sum", + "service_name": "HAWQ", + "component_name": "HAWQSEGMENT" + } + ], + "values": [ + { + "name": "Read throughput", + "value": "${read_bps._sum/1048576}" + }, + { + "name": "Write throughput", + "value": "${write_bps._sum/1048576}" + } + ], + "properties": { + "display_unit": "Mbps", + "graph_type": "LINE", + "time_range": "1" + } + } + ] + } + ] +} \ No newline at end of file