ambari git commit: AMBARI-15105: Add alerts for HAWQ components status (bhuvnesh2703 via jaoki)

2016-02-25 Thread jaoki
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 15933088c -> 27e510b82


AMBARI-15105: Add alerts for HAWQ components status (bhuvnesh2703 via jaoki)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/27e510b8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/27e510b8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/27e510b8

Branch: refs/heads/branch-2.2
Commit: 27e510b82aefd61b31d3da4f420b455689516603
Parents: 1593308
Author: Jun Aoki 
Authored: Thu Feb 25 15:46:52 2016 -0800
Committer: Jun Aoki 
Committed: Thu Feb 25 15:46:52 2016 -0800

--
 .../common-services/HAWQ/2.0.0/alerts.json  |  93 +++-
 .../package/alerts/alert_component_status.py|  76 ++
 .../2.3/HAWQ/test_alert_component_status.py | 141 +++
 ambari-web/app/views/main/dashboard/widgets.js  |   2 +-
 4 files changed, 310 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/27e510b8/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/alerts.json
--
diff --git 
a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/alerts.json 
b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/alerts.json
index 3119a0c..14ad6d7 100644
--- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/alerts.json
+++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/alerts.json
@@ -1,5 +1,32 @@
 {
   "HAWQ": {
+"service": [
+  {
+"name": "hawq_segment_process_percent",
+"label": "Percent HAWQ Segments Available",
+"description": "This alert is triggered if the number of down HAWQ 
Segments in the cluster is greater than the configured critical threshold.",
+"interval": 1,
+"scope": "SERVICE",
+"enabled": true,
+"source": {
+  "type": "AGGREGATE",
+  "alert_name": "hawq_segment_process",
+  "reporting": {
+"ok": {
+  "text": "affected: [{1}], total: [{0}]"
+},
+"warning": {
+  "text": "affected: [{1}], total: [{0}]",
+  "value": 0.1
+},
+"critical": {
+  "text": "affected: [{1}], total: [{0}]",
+  "value": 0.3
+}
+  }
+}
+  }
+],
 "HAWQMASTER": [
   {
 "name": "hawqstandby_sync_status",
@@ -13,7 +40,71 @@
   "path": "HAWQ/2.0.0/package/alerts/alert_sync_status.py",
   "parameters": []
 }
+  },
+  {
+"name": "hawq_master_process",
+"label": "HAWQ Master Process",
+"description": "This alert is triggered if the HAWQ Master process 
cannot be confirmed to be up and listening on the network.",
+"interval": 1,
+"scope": "ANY",
+"source": {
+  "type": "SCRIPT",
+  "path": "HAWQ/2.0.0/package/alerts/alert_component_status.py",
+  "parameters": [
+{
+  "name": "component_name",
+  "display_name": "Component Name",
+  "value": "master",
+  "type": "STRING",
+  "description": "This text string indicates if it is a Master, 
Standby or Segment"
+}
+  ]
+}
+  }
+],
+"HAWQSEGMENT": [
+  {
+"name": "hawq_segment_process",
+"label": "HAWQ Segment Process",
+"description": "This host-level alert is triggered if the HAWQ Segment 
process cannot be confirmed to be up and listening on the network.",
+"interval": 1,
+"scope": "HOST",
+"source": {
+  "type": "SCRIPT",
+  "path": "HAWQ/2.0.0/package/alerts/alert_component_status.py",
+  "parameters": [
+{
+  "name": "component_name",
+  "display_name": "Component Name",
+  "value": "segment",
+  "type": "STRING",
+  "description": "This text string indicates if it is a Master, 
Standby or Segment"
+}
+  ]
+}
+  }
+],
+"HAWQSTANDBY": [
+  {
+"name": "hawq_standby_process",
+"label": "HAWQ Standby Process",
+"description": "This alert is triggered if the HAWQ Standby process 
cannot be confirmed to be up and listening on the network.",
+"interval": 1,
+"scope": "ANY",
+"source": {
+  "type": "SCRIPT",
+  "path": "HAWQ/2.0.0/package/alerts/alert_component_status.py",
+  "parameters": [
+{
+  "name": "component_name",
+  "display_name": "Component Name",
+  "value": "standby",
+  "type": "STRING",
+  "description": "This text string 

ambari git commit: AMBARI-15105: Add alerts for HAWQ components status (bhuvnesh2703 via jaoki)

2016-02-25 Thread jaoki
Repository: ambari
Updated Branches:
  refs/heads/trunk 8fb17ab09 -> 29115e81e


AMBARI-15105: Add alerts for HAWQ components status (bhuvnesh2703 via jaoki)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/29115e81
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/29115e81
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/29115e81

Branch: refs/heads/trunk
Commit: 29115e81ee2ba6643c7725903300f070c4ba2ea5
Parents: 8fb17ab
Author: Jun Aoki 
Authored: Thu Feb 25 15:45:58 2016 -0800
Committer: Jun Aoki 
Committed: Thu Feb 25 15:45:58 2016 -0800

--
 .../common-services/HAWQ/2.0.0/alerts.json  |  93 +++-
 .../package/alerts/alert_component_status.py|  76 ++
 .../2.3/HAWQ/test_alert_component_status.py | 141 +++
 ambari-web/app/views/main/dashboard/widgets.js  |   2 +-
 4 files changed, 310 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/29115e81/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/alerts.json
--
diff --git 
a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/alerts.json 
b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/alerts.json
index 3119a0c..14ad6d7 100644
--- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/alerts.json
+++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/alerts.json
@@ -1,5 +1,32 @@
 {
   "HAWQ": {
+"service": [
+  {
+"name": "hawq_segment_process_percent",
+"label": "Percent HAWQ Segments Available",
+"description": "This alert is triggered if the number of down HAWQ 
Segments in the cluster is greater than the configured critical threshold.",
+"interval": 1,
+"scope": "SERVICE",
+"enabled": true,
+"source": {
+  "type": "AGGREGATE",
+  "alert_name": "hawq_segment_process",
+  "reporting": {
+"ok": {
+  "text": "affected: [{1}], total: [{0}]"
+},
+"warning": {
+  "text": "affected: [{1}], total: [{0}]",
+  "value": 0.1
+},
+"critical": {
+  "text": "affected: [{1}], total: [{0}]",
+  "value": 0.3
+}
+  }
+}
+  }
+],
 "HAWQMASTER": [
   {
 "name": "hawqstandby_sync_status",
@@ -13,7 +40,71 @@
   "path": "HAWQ/2.0.0/package/alerts/alert_sync_status.py",
   "parameters": []
 }
+  },
+  {
+"name": "hawq_master_process",
+"label": "HAWQ Master Process",
+"description": "This alert is triggered if the HAWQ Master process 
cannot be confirmed to be up and listening on the network.",
+"interval": 1,
+"scope": "ANY",
+"source": {
+  "type": "SCRIPT",
+  "path": "HAWQ/2.0.0/package/alerts/alert_component_status.py",
+  "parameters": [
+{
+  "name": "component_name",
+  "display_name": "Component Name",
+  "value": "master",
+  "type": "STRING",
+  "description": "This text string indicates if it is a Master, 
Standby or Segment"
+}
+  ]
+}
+  }
+],
+"HAWQSEGMENT": [
+  {
+"name": "hawq_segment_process",
+"label": "HAWQ Segment Process",
+"description": "This host-level alert is triggered if the HAWQ Segment 
process cannot be confirmed to be up and listening on the network.",
+"interval": 1,
+"scope": "HOST",
+"source": {
+  "type": "SCRIPT",
+  "path": "HAWQ/2.0.0/package/alerts/alert_component_status.py",
+  "parameters": [
+{
+  "name": "component_name",
+  "display_name": "Component Name",
+  "value": "segment",
+  "type": "STRING",
+  "description": "This text string indicates if it is a Master, 
Standby or Segment"
+}
+  ]
+}
+  }
+],
+"HAWQSTANDBY": [
+  {
+"name": "hawq_standby_process",
+"label": "HAWQ Standby Process",
+"description": "This alert is triggered if the HAWQ Standby process 
cannot be confirmed to be up and listening on the network.",
+"interval": 1,
+"scope": "ANY",
+"source": {
+  "type": "SCRIPT",
+  "path": "HAWQ/2.0.0/package/alerts/alert_component_status.py",
+  "parameters": [
+{
+  "name": "component_name",
+  "display_name": "Component Name",
+  "value": "standby",
+  "type": "STRING",
+  "description": "This text string indicates