alpha
Login
or
Join now
xeiaso.net
/
objgit
Star
10
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Git backed by object storage because you can't stop me
git
object-storage
kefka
Star
10
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
objgit
/
cmd
/
at
a300ea49df20ad5dc82fc4dabb85fbd3261faed7
1 folder
Xe Iaso
feat(metrics): add Prometheus instrumentation and a /metrics endpoint
7w ago
a300ea49
objgitd
feat(metrics): add Prometheus instrumentation and a /metrics endpoint Instrument the three things an operator needs to see and serve them on a dedicated listener (-metrics-bind, default :9090; empty disables): - s3fs: count + latency per S3 API operation (GetObject, PutObject, …) via a process-level observer set with s3fs.SetMetricsObserver, keeping s3fs free of any prometheus import. - git ops: count + latency + in-flight gauge per protocol+service+status, wrapped once per transport handler (http/git/ssh). - auth: count + latency per transport+operation+decision, routed through a new (*daemon).authorize chokepoint that all three transports now call. Extras: push-hook runs (ok/error/timeout) with latency, repos auto-created counter, and the default registry's Go-runtime + process collectors. Per the operator's call there is no repo label (unbounded cardinality); git ops are keyed by protocol+service+status only. All vectors live in internal/metrics via promauto on the default registry, exposed by promhttp.Handler under the existing errgroup Serve/Shutdown idiom.
1 month ago