Skip to content

Conversation

@fredrikekre
Copy link
Member

This patch instruments the PkgServer code using Prometheus.jl 1 and exposes the following metrics on the new GET /metrics endpoint:

  • Histogram of request times labeled by endpoint (buckets will have to be adjusted once there is some data from live servers).
  • Gauge for number of concurrent requests
  • Counter with registry updates
  • Counters for bytes sent/received
  • Counters for currently cached resources (number of files and number of bytes) labeled by resource type
  • Metrics about the Julia process (Prometheus.ProcessCollector)
  • Metrics about memory allocations and GC (Prometheus.GCCollector)

@fredrikekre
Copy link
Member Author

Deployed to https://staging.pkg.julialang.org/metrics

@fredrikekre fredrikekre force-pushed the fe/prom branch 2 times, most recently from c81b009 to 02ca363 Compare December 5, 2023 10:13
This patch instruments the PkgServer code using Prometheus.jl [1] and
exposes the following metrics on the new `GET /metrics` endpoint:

 - Histogram of request times labeled by endpoint (buckets will have to
   be adjusted once there is some data from live servers).
 - Gauge for number of concurrent requests
 - Counter with registry updates
 - Counters for bytes sent/received
 - Counters for currently cached resources (number of files and  number
   of bytes) labeled by resource type
 - Metrics about the Julia process (`Prometheus.ProcessCollector`)
 - Metrics about memory allocations and GC (`Prometheus.GCCollector`)

[1]: https://github.com/fredrikekre/Prometheus.jl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants