ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-10816) Expose Customizable Parameters For SCRIPT Alerts
Date Wed, 29 Apr 2015 17:55:09 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-10816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14519833#comment-14519833
] 

Hudson commented on AMBARI-10816:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #2475 (See [https://builds.apache.org/job/Ambari-trunk-Commit/2475/])
AMBARI-10816 - Expose Customizable Parameters For SCRIPT Alerts (jonathanhurley) (jhurley:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=6727c1dc8c32abbc4ea1a7e3c9652707bb4fd23d)
* ambari-agent/src/test/python/ambari_agent/TestAlerts.py
* ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/alerts/alert_nodemanager_health.py
* ambari-server/src/main/java/org/apache/ambari/server/state/alert/ScriptSource.java
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/HDFS/alerts.json
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/OOZIE/package/files/alert_check_oozie_server.py
* ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_ha_namenode_health.py
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/FLUME/alerts.json
* ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/alerts/check_supervisor_process_win.py
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/HDFS/package/files/alert_ha_namenode_health.py
* ambari-server/src/main/resources/alerts.json
* ambari-server/src/main/resources/host_scripts/alert_disk_space.py
* ambari-agent/src/main/python/ambari_agent/alerts/script_alert.py
* ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_thrift_port.py
* ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/alerts.json
* ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py
* ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/alerts/alert_check_oozie_server.py
* ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/alerts/alert_nodemanagers_summary.py
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/HDFS/package/files/alert_checkpoint_time.py
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/YARN/package/files/alert_nodemanager_health.py
* ambari-agent/src/test/python/ambari_agent/dummy_files/test_script.py
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/WEBHCAT/package/files/alert_webhcat_server.py
* ambari-server/src/main/resources/common-services/FLUME/1.4.0.2.0/alerts.json
* ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/alerts.json
* ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_checkpoint_time.py
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/HIVE/package/files/alert_hive_thrift_port.py
* ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/alerts/alert_ambari_metrics_monitor.py
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/YARN/alerts.json
* ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/alerts.json
* ambari-server/src/main/resources/common-services/FLUME/1.4.0.2.0/package/alerts/alert_flume_agent_status.py
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/FLUME/package/files/alert_flume_agent_status.py
* ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_webhcat_server.py


> Expose Customizable Parameters For SCRIPT Alerts
> ------------------------------------------------
>
>                 Key: AMBARI-10816
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10816
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-agent, ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> Ambari SCRIPT alerts currently do not expose any configurable properties or thresholds.

> Example: Ability to customize "timeout=30" in the Hive Metastore Process alert
> https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py
> {code:title=Parameters Defined In Definition JSON}
>       {
>         "name": "ambari_agent_disk_usage",
>         "label": "Ambari Agent Disk Usage",
>         "description": "This host-level alert is triggered if the amount of disk space
used on a host goes above specific thresholds. The default values are 50% for WARNING and
80% for CRITICAL.",
>         "interval": 1,
>         "scope": "HOST",
>         "enabled": true,
>         "source": {
>           "type": "SCRIPT",
>           "path": "alert_disk_space.py",
>           "parameters": [
>             {
>             "name": "minimum.free.space",
>             "display_name": "Minimum Free Space",
>             "value": 5000000000,
>             "type": "NUMERIC",
>             "description": "The overall amount of free disk space left before an alert
is triggered.",
>             "units": "bytes"
>             },
>             {
>             "name": "percent.used.space.warning.threshold",
>             "display_name": "Warning",
>             "value": 0.5,
>             "type": "PERCENT",
>             "description": "The percent of disk space consumed before a warning is triggered.",
>             "units": "%"
>             },
>             {
>             "name": "percent.free.space.critical.threshold",
>             "display_name": "Critical",
>             "value": 0.8,
>             "type": "PERCENT",
>             "description": "The percent of disk space consumed before a critical alert
is triggered.",
>             "units": "%"
>             }
>           ]
>         }
>       }
> {code}
> {code:title=Definition Returned From API}
>       "AlertDefinition" : {
>         "cluster_name" : "c1",
>         "id" : 58,
>         "label" : "Ambari Agent Disk Usage",
>         "name" : "ambari_agent_disk_usage",
>         "source" : {
>           "parameters" : [
>             {
>               "display_name" : "Minimum Free Space",
>               "description" : "The overall amount of free disk space left before an alert
is triggered.",
>               "name" : "minimum.free.space",
>               "value" : "5.0E9",
>               "type" : "NUMERIC",
>               "units" : "bytes"
>             },
>             {
>               "display_name" : "Warning",
>               "description" : "The percent of disk space consumed before a warning is
triggered.",
>               "name" : "percent.used.space.warning.threshold",
>               "value" : "0.5",
>               "type" : "PERCENT",
>               "units" : "%"
>             },
>             {
>               "display_name" : "Critical",
>               "description" : "The percent of disk space consumed before a critical alert
is triggered.",
>               "name" : "percent.free.space.critical.threshold",
>               "value" : "0.8",
>               "type" : "PERCENT",
>               "units" : "%"
>             }
>           ],
>           "path" : "alert_disk_space.py",
>           "type" : "SCRIPT"
>         }
>       }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message