Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
1. Install Ambari cluster
2.. Create a custom Alert with below api
POST => http://ambarihosturl/api/v1/clusters/
/alert_definitions/
{"AlertDefinition" : { "cluster_name" : "cluster_name", "component_name" : "HBASE_MASTER", "description" : "This alert is triggered when the Garbage Collection pause time exceeds 1 sec.", "enabled" : true, "help_url" : "null", "id" : 156, "ignore_host" : false, "interval" : 1, "label" : "[CUSTOM] HMaster GC Duration", "name" : "hmaster.jvm.JvmMetrics.GcTimeMillis", "repeat_tolerance" : 1, "repeat_tolerance_enabled" : true, "scope" : "ANY", "service_name" : "HBASE", "source" : { "ams" : { "interval" : 5.0, "app_id" : "hbase", "value" : "{0}", "minimum_value" : -1.0, "compute" : "max", "metric_list" : [ "jvm.Master.JvmMetrics.GcTimeMillis._rate" ] }, "reporting" : { "critical" : { "value" : 4000.0, "text" : "GC Duration: {0}" }, "warning" : { "value" : 1000.0, "text" : "GC Duration: {0}" }, "units" : "ms", "ok" : { "text" : "GC Duration: {0}" } }, "type" : "AMS", "uri" : { "connection_timeout" : 15.0, "http" : "metric-collectorhostnameā€¯, "default_port" : 6188.0 } }}}
3. once custom Alerts is created
4. open Ambari - Alerts-> search for the custom Alert([CUSTOM] HMaster GC Duration)
5. click on edit name of the Alert
Error message :
4. click on edit alert it is giving this message
Invalid input. Only alphanumerics, underscores, hyphens, percentage, brackets and spaces are allowed. Value should be less than 255 symbols.
we shouldn't give this message as the name of the alert satisfies the criteria mentioned in the message