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

Requesting non-existing metric (including wildcard) to AMS gets HTTP 500

    XMLWordPrintableJSON

Details

    Description

      Below links are throwing HTTP 500:

      http://<host>:6188/ws/v1/timeline/metrics?appId=nimbus&hostname=&metricNames=topology.streamline-1-simple-yelp-review.3-SINK.%25.--fail-count.%25&startTime=1522734868701&endTime=1522736668701

      http://<host>:3000/api/datasources/proxy/1/ws/v1/timeline/metrics?metricNames=topology.streamline-1-simple-yelp-review.%.--fail-count.%._avg&appId=nimbus&startTime=1522715768&endTime=1522737368&seriesAggregateFunction=sum

      Please note that such kind of metrics are not in metadata, but I guess we are returning empty map here, not throwing HTTP 500.

      Attachments

        Issue Links

          Activity

            People

              avijayan Aravindan Vijayan
              avijayan Aravindan Vijayan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h