Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial prometheus metrics #37

Merged
merged 16 commits into from Dec 22, 2023
Merged

initial prometheus metrics #37

merged 16 commits into from Dec 22, 2023

Commits on Sep 18, 2023

  1. Configuration menu
    Copy the full SHA
    7bff2e0 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2023

  1. merge: resolve conflict before merge: remove thread pool since there'…

    …s already one in main
    dnut committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    8e3d975 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b017cdc View commit details
    Browse the repository at this point in the history
  3. feat(prometheus): histogram, gauge, counter

    implement histogram and gauge. make existing counter conform to standard. rename old "gauge" to "gauge_fn" since it is not a true prometheus gauge but an equivalent of the golang GaugeFunc
    dnut committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    0ad8c7b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    426e76e View commit details
    Browse the repository at this point in the history
  5. refactor(prometheus): more straightforward data ownership

    metrics structs can use normal initialization so they aren's so esoteric. the registry is the context where we'd like to allocate everything in an arena and manage the memory centrally. so, for clarity, that scope can also be in charge of allocating the structs. that way, the structs can behave as normal structs on their own, without requiring special memory management
    dnut committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    9b05339 View commit details
    Browse the repository at this point in the history
  6. refactor(prometheus): monotonic for non-sync. clarify default histogr…

    …am buckets ownership
    dnut committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    9bc31a6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a90fac5 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2023

  1. Configuration menu
    Copy the full SHA
    5a8306d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    817b462 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9fbc74f View commit details
    Browse the repository at this point in the history
  4. add test endpoint for prometheus

    dnut committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    e5813bd View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2023

  1. fix(prometheus): pr feedback

    - initialize prometheus registry and http adapter with sig main()
    - add global registry singleton.
    - implement OnceCell to safely support global singletons that need to be initialized at runtime
    - make Counter a normal looking struct (not a file struct)
    - switch unnecessary .Release operation in histogram to .Monotonic
    - switch from std.http to httpz
    dnut committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    7eca0e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4609f9b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9cd4be0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    47dce1a View commit details
    Browse the repository at this point in the history