Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-26085

Alert label Validation is not happening correctly on UI

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • ambari-web
    • None

    Description

      1. Install Ambari cluster
      2.. Create a custom Alert with below api
      POST => http://ambarihosturl/api/v1/clusters/

      {clustername}

      /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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            satheeshakuthota Satheesh Akuthota

            Dates

              Created:
              Updated:

              Slack

                Issue deployment