Add Prometheus metrics endpoint #325

Merged
Jef Roosens merged 3 commits from Chewing_Bever/vieter:metrics into dev 2023-01-03 21:51:18 +01:00

This PR adds, as the title suggests, a Prometheus-compatible endpoint for collecting metrics from a Vieter instance. Currently only metrics on amount of requests and processing time per request are recorded, but I plan on tracking more metrics as time progresses. This PR serves as a basis on which I can add further metrics.

This PR might look small, but I wrote a library for it first ;p

This PR adds, as the title suggests, a Prometheus-compatible endpoint for collecting metrics from a Vieter instance. Currently only metrics on amount of requests and processing time per request are recorded, but I plan on tracking more metrics as time progresses. This PR serves as a basis on which I can add further metrics. This PR might look small, but I wrote [a library](https://git.rustybever.be/vieter-v/metrics) for it first ;p
Jef Roosens added this to the 0.6.0 milestone 2022-12-28 20:27:37 +01:00
Jef Roosens added the
enhancement
label 2022-12-28 20:27:37 +01:00
Jef Roosens added 2 commits 2022-12-28 20:27:38 +01:00
ci/woodpecker/pr/docs Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/man Pipeline was successful Details
ci/woodpecker/pr/docker Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
2edf5be900
feat(server): ability to disable metrics
Jef Roosens force-pushed metrics from 2edf5be900 to 0c581981b9 2022-12-29 21:57:38 +01:00 Compare
Jef Roosens force-pushed metrics from 0c581981b9 to 4ca2521937 2022-12-29 22:00:54 +01:00 Compare
Jef Roosens added 1 commit 2023-01-03 09:30:07 +01:00
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/docs Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/docker Pipeline was successful Details
ci/woodpecker/pr/man Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
4ed4ef4a27
chore: generate man pages using debug build
Jef Roosens merged commit 849bf54979 into dev 2023-01-03 21:51:18 +01:00
Sign in to join this conversation.
There is no content yet.