Satheesh Akuthota created AMBARI-26085:
------------------------------------------
Summary: Alert label Validation is not happening correctly on UI
Key: AMBARI-26085
URL: https://issues.apache.org/jira/browse/AMBARI-26085
Project: Ambari
Issue Type: Bug
Components: ambari-web
Reporter: Satheesh Akuthota
Attachments: Alert-Ui-issue.png
1. Install Ambari cluster
2.. Create a custom Alert with below api
POST => http://ambarihosturl/api/v1/clusters/{clustername}/alert_definitions/
{code:java}
{"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
}
}}}
{code}
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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]