Skip to content
Snippets Groups Projects
  1. Mar 19, 2019
    • David Douard's avatar
      api: kind of fix for the SWHRemoteAPI's contructor · 8147cd7f
      David Douard authored
      - ensure we do accept **kwargs so any super().__init__(**kwargs) from an
        unexpected MRO path in an indecent maze of multi-inheritance will not crash
      - do not call super().__init__(); it is either useless (most probably,
        super() is object in this context) or silently ignore passed kwargs that
        super() (when it's not object) may have been able to understand...
      
      Long story short, kwargs handling in multi-inheritance __init__ methods is
      a mess.
      8147cd7f
    • David Douard's avatar
      api: factorize SWHRemoteAPI.(get|post)_stream methods · 5299aa75
      David Douard authored
      - merge raw_post and row_get in a unique raw_verb method,
      - merge post_stream() and post() as a unique post(); post_strean is then a
        call to post with the 'stream' parameter set,
      - merge get_stream() and get() the same.
      5299aa75
    • David Douard's avatar
      tests: ensure LC_ALL is set to C.UTF-8 for pytest · bd112a0a
      David Douard authored
      so the pytest-postgresql fixture works as expected on non C locale systems.
      bd112a0a
  2. Mar 18, 2019
  3. Feb 28, 2019
  4. Feb 19, 2019
  5. Feb 11, 2019
  6. Feb 07, 2019
  7. Feb 01, 2019
  8. Jan 31, 2019
  9. Jan 30, 2019
  10. Jan 29, 2019
  11. Jan 28, 2019
  12. Jan 24, 2019
  13. Jan 23, 2019
  14. Jan 09, 2019
  15. Dec 21, 2018
    • Nicolas Dandrimont's avatar
      Add a statsd client module · b9df2cf1
      Nicolas Dandrimont authored
      prometheus-statsd-exporter uses the datadog format for its tags, so base our
      client on their Python code, with the following modifications:
      
       - Removed python < 3.5 compat code
       - trimmed the imports down to be a single module
       - move to time.monotonic() instead of time.time()
       - adjust some options:
         - drop unix socket connection option
         - add environment variable support for setting the statsd host and
           port (pulled the idea from the main python statsd module)
         - only send timer metrics in milliseconds (that's what
           prometheus-statsd-exporter expects)
         - drop DataDog-specific metric types (that are unsupported in
           prometheus-statsd-exporter)
       - made the tags a dict instead of a list (prometheus-statsd-exporter only
         supports tags with a value, mirroring prometheus)
       - improve unit test coverage
       - documentation cleanup
      b9df2cf1
  16. Dec 17, 2018
  17. Dec 14, 2018
  18. Dec 13, 2018
Loading