Skip to content
Snippets Groups Projects
  1. Jun 09, 2023
  2. Mar 01, 2023
  3. Jan 09, 2023
  4. Jan 03, 2023
  5. Aug 01, 2022
  6. Jun 15, 2022
  7. Apr 20, 2022
    • Mikołaj Wawrzyniak's avatar
      Measure metric collection time · 042e1ea0
      Mikołaj Wawrzyniak authored and Rémy Coutable's avatar Rémy Coutable committed
      ServicePing metrics can take a significant time
      and resources to be collected. This commit attempts
      to build up tooling that provides insights into
      collection time of metrics on self-managed
      instances. It adds decorator class to wraps
      resulting metrics values. Such approach was
      selected because upon collection it is not
      known which metric would get value.
      Using decorator enables enumeration over
      resulting ServicePing payload and
      retrieval of collection time information
      without to widespread changes to legacy codebase
      
      Changelog: added
      042e1ea0
  8. Jan 19, 2022
  9. Dec 12, 2021
  10. Dec 07, 2021
  11. Nov 30, 2021
  12. Nov 12, 2021
  13. Oct 25, 2021
  14. Jul 21, 2021
  15. Jul 20, 2021
  16. Jul 02, 2021
  17. Apr 08, 2021
  18. Apr 02, 2021
  19. Mar 12, 2021
    • Peter Leitzen's avatar
      Implement usage ping `histogram` · 2940e3fd
      Peter Leitzen authored
      The implementation utilizes `WIDTH_BUCKET` SQL function.
      
      Note that this iteration does not use support batching.
      
      Convert histogram keys to strings in Usage Ping
      
      Return a more meaningful histogram fallback
      
      Avoid raising exceptions during usage ping calculations
      
      Return fallback also for invalid statements
      
      Avoid control flow with exceptions
      Verified
      2940e3fd
  20. Mar 10, 2021
  21. Feb 24, 2021
    • alinamihaila's avatar
      Remove extra feature flag check · 84dad215
      alinamihaila authored
        - From lib/gitlab/utils/usage_data.rb
        - Check is done in Gitlab::UsageDataCounters::HLLRedisCounter
        - Add related feature flag to i_source_code_code_intelligence
        this was missing from the event definition
      Verified
      84dad215
  22. Feb 22, 2021
  23. Feb 19, 2021
    • Piotr Skorupa's avatar
      Add HLLRedisCounter errors to redis_usage_counter · a51f4e64
      Piotr Skorupa authored
      There are instances (e.g. in Gitlab::UsageData) of passing
      HLLRedisCounter to the block in #redis_usage_data and it's errors
      wouldn't be rescued to return fallback value. This would potentially
      result in failing the entire Usage Ping generation.
      
      This prevents that and hardens the method. All HLLRedisCounter custom
      exceptions are rescued, since EventError is their superclass.
      
      See !54600
      a51f4e64
  24. Feb 09, 2021
  25. Feb 02, 2021
  26. Jan 26, 2021
  27. Jan 11, 2021
  28. Jan 07, 2021
  29. Jan 05, 2021
    • Balasankar 'Balu' C's avatar
      Deprecate prometheus.enable and prometheus.listen_address · f8b8d4a8
      Balasankar 'Balu' C authored and Peter Leitzen's avatar Peter Leitzen committed
      
      We introduced `prometheus.server_address` setting in `gitlab.yml` which
      is to be Rails application's SSOT regarding a Prometheus address.
      Hence, we can deprecate the existing settings `enable` and
      `listen_address`.
      
      Changes:
      * To `Gitlab::Prometheus::Internal` class methods:
        * `server_address` method renamed to `uri_without_protocol`, to
          reflect what the method actually does.
        * `listen_address` method renamed to `server_address`.
        * `promtheus_enabled?` method now depends on presence of
          `server_address`.
      
      * To `Gitlab::DatabaseImporters::SelfMonitoring::Project::CreateService`
        class methods:
        * `prometheus_listen_address` method renamed to
          `prometheus_server_address`.
        * `internal_prometheus_listen_address_uri` renamed to
          `internal_prometheus_server_address_uri`.
      
      Signed-off-by: default avatarBalasankar "Balu" C <balasankarc@autistici.org>
      f8b8d4a8
  30. Dec 31, 2020
  31. Dec 23, 2020
  32. Dec 03, 2020
  33. Sep 22, 2020
  34. Sep 21, 2020
  35. Sep 17, 2020
  36. Sep 16, 2020
Loading