Skip to content
  1. May 23, 2024
  2. Apr 24, 2024
  3. Apr 22, 2024
  4. Mar 21, 2024
  5. Mar 05, 2024
  6. Mar 01, 2024
  7. Feb 28, 2024
  8. Feb 07, 2024
  9. Feb 06, 2024
  10. Jan 24, 2024
  11. Jan 10, 2024
  12. Jan 05, 2024
  13. Jan 03, 2024
  14. Dec 21, 2023
  15. Nov 29, 2023
  16. Nov 22, 2023
  17. Nov 21, 2023
  18. Nov 20, 2023
  19. Nov 16, 2023
  20. Oct 30, 2023
  21. Oct 23, 2023
  22. Oct 16, 2023
  23. Sep 11, 2023
  24. Sep 01, 2023
  25. Aug 22, 2023
  26. Aug 18, 2023
  27. Aug 16, 2023
  28. Jul 14, 2023
  29. Jul 12, 2023
  30. Jul 05, 2023
  31. Jun 13, 2023
  32. Jun 12, 2023
  33. May 30, 2023
    • Dominique's avatar
      feat: add prometheus `metrics` endpoint in dedicated server & port (#1232) · a256790e
      Dominique authored
      
      
      * feat: add prometheus `metrics` endpoint in dedicated server & port
      - add separate express instance and port for prometheus metrics
      - expose the default prometheus metrics
      - add a custom metric of type `counter` that increments in every http error
      
      * fix lint errors by using an IIFE & adding void operator
      - remove the `return` keyword
      - add an IIFE inside the callback
      - add the `void` operator
      
      * update dep prom-client
      
      * add prometheus flags & fix for process.kill
      - add a prometheus flag that runs the prometheus server & enables the metrics endpoint
      - add a prometheus-port flag so that the user can choose a custom port to run the metrics endpoint
      - change the code in killAll so that there is no `Object is possibly undefined` error
      
      * code refactor, help page & README
      - add prometheus options and description under help flag
      - add `metricsApp` and increased `httpErrorCounter` only if prometheus flag is true
      - move logger and register inside functions
      - docs: add a section for prometheus in the README
      
      * remove jest unnecessary flags
      
      ---------
      
      Co-authored-by: default avatartarikgul <[email protected]>
      a256790e