1. 20 6月, 2019 1 次提交
    • S
      Add embedding flag and filter to CPU/Mem · f49dd76a
      Sarah Yasonik 提交于
      This commits adds support for metrics dashboards
      for embedding. If the flag 'embedded' is provided
      to the environments/id/metrics_dashboard endpoint,
      the response will be suitable for embedding in
      issues or other content.
      
      This is a precursor for support for embedding
      metrics in GFM.
      f49dd76a
  2. 07 6月, 2019 1 次提交
  3. 20 5月, 2019 1 次提交
  4. 01 5月, 2019 1 次提交
    • S
      Update metrics dashboard API to load yml from repo · 552a3d2f
      Sarah Yasonik 提交于
      Updates the EnvironmentController#metrics_dashboard endpoint
      to support a "dashboard" param, which can be used to specify
      the filepath of a dashboard configuration from a project
      repository. Dashboard configurations are expected to be
      stored in .gitlab/dashboards/.
      
      Updates dashboard post-processing steps to exclude custom
      metrics, which should only display on the system dashboard.
      552a3d2f
  5. 29 4月, 2019 1 次提交
    • P
      Load environment metrics only for JSON endpoint · 80fec5c3
      Peter Leitzen 提交于
      When showing the HTML version of the environment metrics we don't need
      to fetch their metrics because we don't use them anymore on the HTML
      version.
      
      We use additional_metrics.json endpoint now.
      80fec5c3
  6. 25 4月, 2019 1 次提交
  7. 24 4月, 2019 3 次提交
  8. 15 4月, 2019 1 次提交
  9. 09 4月, 2019 1 次提交
  10. 05 4月, 2019 1 次提交
  11. 03 4月, 2019 1 次提交
    • S
      Specify time window for additional metrics api · ab1e1b55
      syasonik 提交于
      Adds support for start and end parameters in the #additional_metrics
      endpoint of the EnvironmentsController. start and end are meant to be
      unix timestamps, per the Prometheus API (as the consumer of this
      endpoint will eventually be transitioned to a prometheus endpoint).
      This functionality is behind the :metrics_time_window feature flag
      for development.
      ab1e1b55
  12. 27 2月, 2019 1 次提交
  13. 06 2月, 2019 1 次提交
  14. 22 1月, 2019 1 次提交
    • S
      Support flat response for envs index route · db054bc1
      syasonik 提交于
      To support environment folders in the UI on the Environments List
      page, the environments index route previously returned one environment
      per folder, excluding those other than the latest deploy. However, the
      environtments dropdown on the metrics dashboard requires that any
      environment be selectable.
      
      To accommodate both use cases, support an optional 'nested' parameter
      in the index route to return either a flat, complete response or a
      nested response based on the use case in question. The new default
      response structure is the flat response.
      db054bc1
  15. 19 12月, 2018 1 次提交
    • B
      Update specs to rails5 format · b44a2c80
      blackst0ne 提交于
      Updates specs to use new rails5 format.
      
      The old format:
      `get :show, { some: params }, { some: headers }`
      
      The new format:
      `get :show, params: { some: params }, headers: { some: headers }`
      b44a2c80
  16. 29 11月, 2018 1 次提交
    • Y
      Fix Environment terminal specs for EE · 45812f1c
      Yorick Peterse 提交于
      In EE we redefine Environment#terminals, which makes it impossible to
      use `allow_any_instance_of(Environment)` or
      `expect_any_instance_of(Environment)`. Other approaches of stubbing
      this class, such as by stubbing `new`, only result in spec failures.
      
      To solve this issue, we add a simple `defined?(EE)` check in the tests
      to change the thing that we are testing. This is rather obnoxious,
      because it requires EE knowledge in CE, and can break if
      `EE::Environment` is removed without updating CE. Unfortunately, it
      appears to be the only solution we have apart from modifying these tests
      in EE (which would cause merge conflicts).
      45812f1c
  17. 01 11月, 2018 1 次提交
  18. 11 7月, 2018 1 次提交
  19. 02 7月, 2018 1 次提交
  20. 29 6月, 2018 1 次提交
  21. 28 6月, 2018 1 次提交
  22. 27 6月, 2018 1 次提交
  23. 25 5月, 2018 1 次提交
  24. 20 10月, 2017 1 次提交
  25. 03 8月, 2017 1 次提交
  26. 06 7月, 2017 2 次提交
  27. 21 6月, 2017 2 次提交
  28. 16 6月, 2017 1 次提交
  29. 06 6月, 2017 1 次提交
  30. 26 5月, 2017 1 次提交
  31. 24 5月, 2017 1 次提交
  32. 23 5月, 2017 1 次提交
  33. 19 5月, 2017 1 次提交
  34. 17 5月, 2017 2 次提交
  35. 12 5月, 2017 1 次提交
    • Z
      Use etag caching for environments JSON · 4535d520
      Z.J. van de Weg 提交于
      For the index view, the environments can now be requested every 15
      seconds. Any transition state of a projects environments will trigger a
      cache invalidation action.
      
      Fixes gitlab-org/gitlab-ce#31701
      4535d520