Skip to content
  • David Wilkins's avatar
    Convert RestClient to Gitlab::HTTP for Prometheus Monitor · fff37463b829
    David Wilkins authored
    - Closes #60024
    
    - Change PrometheusClient.new to accept a base url instead of an
      already created RestClient
    
    - Use Gitlab::HTTP in PrometheusClient instead of creating RestClient
      in PrometheusService
    
    - Move http_options from PrometheusService to
      PrometheusClient (follow_redirects: false)
    
    - ensure that base urls don't have the trailing slash
    
    - Created a `PrometheusClient#url` method that might not be strictly
      required
    
    - Change rescued exceptions from RestClient::* to
      HTTParty::ResponseError where possible and StandardError for the
      rest
    fff37463b829